IRC log of #novawebdev for Wednesday, 2018-05-23

*** dsmall has joined #novawebdev10:07
*** diza has joined #novawebdev10:18
*** diza has joined #novawebdev10:18
DannyBuenos dias10:19
*** mjsir911 has joined #novawebdev10:31
*** jelkner has joined #novawebdev11:04
*** mr_german has joined #novawebdev11:36
jelknerGood morning, mr_german!11:38
jelknerHow are things coming with ORMD?11:39
mr_germangood morning jelkner 11:39
mr_germanjelkner, good :)11:39
jelknerwill we have something for next Sunday to show?11:39
mr_germanjelkner, I am designing something "FAST" as Douglas said11:40
jelknerfast is good, mr_german11:44
jelknerwe want something just good enough for our collaborators to agree to use11:45
jelkneror to suggest changes to before deployment11:45
jelknerlet me know as soon as you have something ready to show11:45
mr_germanjelkner, sure11:45
jelkneri'll email susannah and kyle at that point to tell them11:45
mr_germanjelkner, great!, I'll try to get this done ASAP11:46
jelknerthnks, mr_german!11:46
*** replaceafill has joined #novawebdev11:47
replaceafillgood morning dsmall11:47
dsmallreplaceafill, good morning11:47
replaceafilldsmall, got my emails?11:48
dsmallreplaceafill, I have been messing around with pages and stuff11:48
replaceafilldsmall, ah cool11:48
replaceafilldsmall, try and see if you can figure out what templates are being used by the views you're messing with11:49
replaceafilldsmall, like /pages/add11:49
dsmallreplaceafill, that was what I was about to do11:49
replaceafilldsmall, that'll get you a bit more familiar with the app.pages package11:49
replaceafilldsmall, cool11:49
replaceafilldsmall, also check the apps.pages.models.Page model11:49
replaceafilldsmall, you'll see all its attributes11:49
dsmallreplaceafill, I looked at the different comment views and the Django one looks promising11:50
dsmallreplaceafill, will dp11:50
replaceafilldsmall, the Django one?11:50
dsmallreplaceafill, this one:
replaceafilldsmall, ah, the excontrib :)11:50
replaceafilldsmall, sure11:50
replaceafilldsmall, does it support threads?11:50
dsmallreplaceafill, yes11:51
replaceafilldsmall, ah ok11:51
replaceafilldsmall, that initial selection criteria i wrote down in the story may change11:51
replaceafilldsmall, after we talk to the users11:51
replaceafilldsmall, but let's go with it for now11:51
dsmallreplaceafill, alright11:51
replaceafilldsmall, check also the page categories11:52
replaceafilldsmall, and subcategories11:52
replaceafilldsmall, when you create a page11:52
replaceafilldsmall, you can access the categories from /admin too11:52
dsmallreplaceafill, Okay11:52
replaceafilldsmall, but one thing i haven't figure out is how do you add subcategories11:52
replaceafilldsmall, without doing it from the "add page" view11:52
dsmallreplaceafill, alright I can try to do that11:53
replaceafilldsmall, so if you could investigate that and let us know11:53
replaceafilldsmall, please11:53
replaceafilldsmall, so you have enough to keep you busy, yes?11:53
dsmallreplaceafill, I think so11:53
dsmallreplaceafill, i'll keep you updated11:53
replaceafilldsmall, cool, i'll be around, ping me if you need me11:53
mr_germanreplaceafill, ready to start!12:00
replaceafillmr_german, cool12:00
replaceafillmr_german, anything you need from me?12:00
mr_germanreplaceafill, im good for now12:00
replaceafillmr_german, cool12:00
replaceafillmr_german, i'll try to have the servers ready today12:00
mr_germanreplaceafill, cool12:01
replaceafillmr_german, so you can start adding content12:01
replaceafillmr_german, i'll email you when it's ready12:01
dsmallreplaceafill, this ( is the "add page" view correct?12:08
replaceafilldsmall, correct12:08
dsmallreplaceafill, then that means I found a way to change/add categories/subcategories without that12:09
replaceafilldsmall, what do you mean_12:10
dsmallreplaceafill, when looking at a page via search or the direct domain you can edit categories12:10
replaceafilldsmall, through the category form?12:10
dsmallreplaceafill, im not sure12:10
dsmallreplaceafill, different way12:11
replaceafilldsmall, can you point me to a url?12:11
dsmallreplaceafill, the number at the end of the url is the page id12:12
replaceafilldsmall, yes12:12
dsmallreplaceafill, was this what you were looking for?12:13
replaceafilldsmall, no i meant  to add categories/subcategories independently12:13
replaceafilldsmall, without having a page as a context12:13
dsmallreplaceafill, Ohhh okay12:13
dsmallreplaceafill, I understand now12:13
replaceafilldsmall, see the 22. Files for example12:14
replaceafilldsmall, there's a Files categories option12:15
replaceafilldsmall, that affects only File objects12:15
replaceafilldsmall, and you can manage subcategories too "Add another File Sub-Category"12:15
dsmallreplaceafill, right12:16
replaceafilldsmall, Forums have a similar view12:16
replaceafilldsmall, Videos too12:16
replaceafilldsmall, Pages don't12:16
dsmallreplaceafill, I see12:16
replaceafilldsmall, that could be a task "allow to edit *Page* categories and subcategories trhough the django admin"12:16
replaceafilldsmall, the django admin is everything under /admin12:17
replaceafilldsmall, that doesn't look like the tendenci theem12:17
dsmallreplaceafill, I could try to make that happen12:17
replaceafilldsmall, sure, i think the user will need it12:17
replaceafilldsmall, i mean12:17
replaceafilldsmall, the user *can* do it from those places we just discussed12:17
replaceafilldsmall, but that's not optimal12:18
dsmallreplaceafill, right12:18
replaceafilldsmall, but the /blog has higher priority so try to focus on that first12:18
dsmallreplaceafill, Okay12:19
jelknerreplaceafill ping12:37
replaceafilljelkner, pong12:38
jelknerzOnny gets in at 1:40 pm12:38
jelkneri'll ask him to reach out to nrcerna about flint's logo12:39
jelknerjust an fyi12:39
replaceafilljelkner, cool12:39
replaceafilljelkner, she seems willing to do it12:39
replaceafillto be willing_12:39
jelkneri hope so12:39
jelknerthat's her role in our coop ;-)12:40
jelknerand it is paid work12:40
jelkneri chatted with mr_german, btw12:41
jelknerhe told me he will be ready for sunday12:41
replaceafilljelkner, he better will be :/12:41
replaceafilljelkner, we planned a progress meeting tomorrow at 12:00 pm12:41
*** lelkneralfaro has joined #novawebdev12:42
replaceafilljelkner, and then at 4 pm on friday12:42
replaceafilljelkner, what time is your meeting with ORMD on sunday?12:42
jelkner1 pm12:42
replaceafilljelkner, cool12:42
replaceafilljelkner, i'll probably be in Santa Ana btw12:42
replaceafilljelkner, but i'll be online12:42
jelknersounds good12:42
jelknerok, i'm going to lunch12:43
replaceafilljelkner, later o/12:43
replaceafilllelkneralfaro, you around?12:46
lelkneralfaroreplaceafill, now yup12:58
replaceafillhi lelkneralfaro12:59
lelkneralfaroreplaceafill, hey12:59
replaceafilllelkneralfaro, i just wanted to ask you about my "writing copy" complain lately12:59
replaceafilllelkneralfaro, my opinion is that you're the right person to do that12:59
lelkneralfaroreplaceafill, I am responding to the email as we chat12:59
replaceafilllelkneralfaro, ah cool12:59
replaceafilllelkneralfaro, i'll let you be then :)12:59
lelkneralfaroreplaceafill, I agree12:59
replaceafilllelkneralfaro, thanks!12:59
*** novawebdev has joined #novawebdev13:10
novawebdevlelkneralfaro: Hi Louie, this is the Document I told you in the last email :
*** novawebdev has left #novawebdev (None)13:17
*** nrcerna has joined #novawebdev13:17
nrcernaI'm here :D 13:17
replaceafillhola nrcerna13:17
lelkneralfaronrcerna, hola :)13:17
*** zOnny has joined #novawebdev13:19
zOnnyHello World!13:19
nrcernaWaht about Flint's Logo?13:20
zOnnynrcerna: Do you have any idea about that ?13:20
zOnnynrcerna: Flint is running as a candidate 13:21
zOnnyHe needs another logo13:21
zOnnynrcerna: can you help on that ?13:22
zOnnynrcerna: Flint is running as a democratic party for Washinton District in Vermont13:23
zOnnynrcerna: Do you have idea how his logo should looks like ?13:25
nrcernaSi, solo quisiera saber para dentro de cuanto lo necesitarian listo? zOnny 13:25
zOnnynrcerna: ASAP :D13:25
nrcernajajaja la frase favorita de jelkner 13:26
zOnnynrcerna: replaceafill: likes it 13:26
nrcernaPodrìa tenerte algo ahora por la noche13:26
zOnnynrcerna: that would be great 13:26
nrcernaeso funciona para ti? zOnny 13:26
replaceafillzOnny is learning fast from jelkner13:27
zOnnynrcerna: si 13:27
nrcernaSi, ya veo.13:27
nrcernaOk zOnny  , podrias enviarme el logo actual de Paul?13:28
dsmallreplaceafill, I have a question about the architecture of Tendenci13:28
zOnnynrcerna: lo necesitas ?13:29
replaceafilldsmall, sure13:29
replaceafillzOnny, quick nitpick about paul's site13:29
replaceafillzOnny, i'm not even sure about my recommendation13:29
replaceafillzOnny, but i think you can use rows in bootstrap?13:29
zOnnycorrect replaceafill 13:29
replaceafillzOnny, the Our Plan part could use them13:30
replaceafillzOnny, maybe13:30
replaceafillzOnny, to make the heights of the boxes match13:30
zOnnyI was thinking take that out replaceafill 13:30
nrcernaNevermind zOnny Ese me funciona ;)13:30
replaceafillzOnny, ah ok13:30
zOnnyhe doesn't have content replaceafill 13:30
replaceafillzOnny, sure, i understand13:30
replaceafilldsmall, you can type your question even if several of us are chatting13:31
replaceafilldsmall, that's why we address people individually with their nicks in our messages13:31
dsmallreplaceafill, right, I was just talking to jelkner about how to pose my question13:32
zOnnynrcerna: you can take examples from this link in reference to Flint's party
replaceafilldsmall, ah ok13:32
dsmallreplaceafill, I am just curious about the best way to start the /blog/13:32
dsmallreplaceafill, like would I make a template or?13:33
replaceafilldsmall, you need a view13:34
replaceafilldsmall, remember our discussion about mapping from url to template?13:34
replaceafilldsmall, views have url patterns13:34
dsmallreplaceafill, ya13:35
replaceafilldsmall, that make djanog react13:35
replaceafilldsmall, so you'll need both a new url regexp, /blog for example13:35
replaceafilldsmall, and a view that reacts to that url13:35
replaceafilldsmall, views are usually rendered through templates13:35
replaceafilldsmall, so you'll need that too13:35
dsmallreplaceafill, Okay13:36
zOnnynrcerna: Do you have all that you need ?13:36
nrcernaOk zOnny , thank you :D13:36
dsmallreplaceafill, thanks13:36
nrcernammm.. I think, si necesito algo te escribo ;) zOnny 13:37
replaceafilldsmall, here's what i recommend13:37
replaceafilldsmall, in your tendenci project13:37
replaceafilldsmall, create a blog directory13:37
replaceafilldsmall, and convert it into a python package13:37
replaceafilldsmall, by adding an empty file13:37
replaceafilldsmall, then add the module13:37
replaceafilldsmall, and for its content copy part of the structure of any of the tendenci apps13:37
dsmallreplaceafill, alright cool13:38
zOnny*zOnny sign out for the Day :D13:38
replaceafilldsmall, then you add the module with a function13:38
replaceafilldsmall, again you can check tendenci apps13:38
nrcernaPor cierto zOnny , viste las instrucciones del sitio?13:38
replaceafilldsmall, all of them have both modules and views.py13:38
replaceafilldsmall, you just need one of each13:39
dsmallreplaceafill, I'll probably use the page one as reference13:39
replaceafilldsmall, good idea13:39
replaceafilldsmall, last part of the puzzle13:40
replaceafilldsmall, to get your instance to really use your new package13:40
nrcernalelkneralfaro: si necesitas algo sobre el "what do you need" estaré pendiente.13:41
replaceafilldsmall, is to include it in the conf.local_settings.INSTALLED_APPS tuple13:41
zOnnynrcerna: revisando ...13:41
replaceafilldsmall, and add the urls to the conf.local_urls.extrapatterns13:41
nrcernazOnny:  viste las instrucciones del sitio?13:41
nrcernaAh ok13:41
replaceafilldsmall, just like you did for attendance13:41
dsmallreplaceafill, Okay13:42
replaceafilldsmall, you'll need render_to_response at the end13:42
replaceafilldsmall, just like that ^13:43
dsmallreplaceafill, thanks13:43
replaceafilldsmall, oh and make sure to enable debugging in your project13:43
replaceafilldsmall, you do that by13:43
replaceafilldsmall, setting conf.local_settings.DEBUG = True13:43
replaceafilldsmall, so if something goes wrong you'll have some info why13:43
dsmallreplaceafill, awesome13:43
replaceafilldsmall, let me know how it goes13:44
dsmallreplaceafill, okay13:44
replaceafilldsmall, btw13:44
replaceafilldsmall, what you're creating is really a django application13:44
dsmallreplaceafill, right13:44
replaceafilldsmall, there are ways to do all of this automatically, but i think you learn more doing it yourself :)13:44
replaceafilldsmall, it's like touching low level wires :D13:45
dsmallreplaceafill, totally13:45
replaceafilldsmall, django-admin is that option in case you're interested13:46
replaceafilldsmall, you have it in your virtualenv13:46
dsmallreplaceafill, Okay, I'll check it out if I need to13:46
replaceafilldsmall, kk13:46
dsmallreplaceafill, should I create a new app for /blog?14:09
replaceafilldsmall, yes14:10
dsmallreplaceafill, okay14:10
replaceafilldsmall, we'll refine it's structure later but we discussed should get you started14:10
replaceafillwhat we*14:10
dsmallreplaceafill, okay14:11
mr_germanACTION goes to take his lunch14:12
dsmallreplaceafill, we ran into a problem14:16
replaceafilldsmall, could you ls your project?14:18
replaceafilldsmall, and then ls the blog app14:18
dsmallreplaceafill, give me a minute14:18
replaceafilldsmall, ok14:18
replaceafilldsmall, cool, blog is there14:24
replaceafilldsmall, now let's see blog14:24
replaceafilldsmall, oh so you used startapp?14:24
dsmallreplaceafill, yes14:25
replaceafilldsmall, can you paste your conf/ module and conf/local_urls.py14:26
dsmallreplaceafill, ONE SEC14:28
dsmallreplaceafill, oops caps14:28
dsmallreplaceafill, that's part of local_settings14:29
dsmallreplaceafill, part of
replaceafilldsmall, let's try moving 'blog' at the end of INSTALLED_APPS14:30
replaceafilldsmall, everything seems fine14:31
replaceafilldsmall, let me check the initial error14:31
dsmallreplaceafill, ok14:32
dsmallreplaceafill, do i need to migrate?14:32
replaceafilldsmall, have you added any models yet?14:33
dsmallreplaceafill, or makemigration14:33
dsmallreplaceafill, not yet14:33
replaceafilldsmall, then i don't think it's necessary14:33
replaceafilldsmall, you're still starting your server with pure "python runserver" correct?14:33
dsmallreplaceafill, This is how I am running it:
replaceafilldsmall, oh14:35
dsmallreplaceafill, this is the error now
replaceafilldsmall, there's no urls in the app14:35
replaceafilldsmall, yes14:36
replaceafilldsmall, startapp doesn't add a module to the apps14:36
dsmallreplaceafill, right14:36
replaceafilldsmall, and you're referencing that in your moduel14:36
replaceafilldsmall, you can comment that out for now14:36
replaceafilldsmall, i think that's the problem14:37
dsmallreplaceafill, it works14:37
replaceafilldsmall, alternatively you could create the module in blog with just an empty urlpatterns = [] list14:38
replaceafilldsmall, try either way14:38
dsmallreplaceafill, commenting it out worked14:38
dsmallreplaceafill, it runs normally now14:38
replaceafilldsmall, ah ok14:39
replaceafilldsmall, you'll need though14:39
replaceafilldsmall, so you may want to create that now14:39
replaceafilldsmall, to get it out of the way14:39
dsmallreplaceafill, will do14:39
dsmallreplaceafill, I am getting this page:
dsmallreplaceafill, what else am I missing?14:53
replaceafilldsmall, what's in your module?14:54
replaceafilldsmall, i mean do you have blog.urls already or not yet?14:54
dsmallreplaceafill, the blog one or the conf one?14:54
dsmallreplaceafill, I do14:54
replaceafillreplaceafill, is it still emtpy?14:54
dsmallreplaceafill, no:
replaceafillreplaceafill, ah ok14:55
dsmallreplaceafill, I have been using this as a reference
replaceafilldsmall, i see14:55
replaceafilldsmall, in the django docs14:55
replaceafilldsmall, always look at the bottom right14:56
replaceafilldsmall, there's the Documentation version14:56
replaceafilldsmall, for tendenci7 (the version you're using at the moment) you need Django 1.814:56
replaceafilldsmall, always14:56
dsmallreplaceafill, *face palm*14:56
replaceafilldsmall, sorry that i didn't tell you14:56
replaceafilldsmall, before14:56
dsmallreplaceafill, no problem14:57
replaceafilldsmall, so you want a url(...) not a path()14:57
replaceafilldsmall, you can import url in 1.8 like this: from django.conf.urls import url14:59
replaceafilldsmall, and as you can see url/path takes three arguments15:01
replaceafilldsmall, the first one is a regexp15:01
replaceafilldsmall, you need to set it15:01
replaceafilldsmall, otherwise other parts of Tendenci react15:02
replaceafilldsmall, if you call /blog15:02
replaceafilldsmall, so you can set it to r'^blog/$'15:02
replaceafilldsmall, regular python regexp :S15:02
replaceafilldsmall, your second argument is fine15:03
replaceafilldsmall, but for the third one15:03
replaceafilldsmall, it's good practice to split the name into ""15:03
replaceafilldsmall, so "blog.index" would be better15:03
dsmallreplaceafill, alright, I'll let you know15:04
dsmallreplaceafill, This is my file now:
replaceafilldsmall, the third one should be a keyword argument15:07
replaceafilldsmall, name='blog.index'15:07
dsmallreplaceafill, ahhh15:07
replaceafilldsmall, it's like the forth or fifth in the signature15:07
replaceafilldsmall, only the first two are required15:08
dsmallreplaceafill, right15:08
dsmallreplaceafill, I changed it, but it still doesnt work15:08
dsmallreplaceafill, "[23/May/2018 14:08:09] "GET /blog/ HTTP/1.1" 404 1725" this is what is output in the terminal window that has the server running15:09
replaceafilldsmall, in conf.local_settings.INSTALLED_APPS, did you move 'blog'?15:09
replaceafilldsmall, or is it still just after attendance?15:09
replaceafilldsmall, the order of the apps in INSTALLED_APPS tells django what to process first15:10
dsmallreplaceafill, here:
replaceafilldsmall, yeah, i'm not sure if that's the cause, but try moving 'blog' back after 'attendance'15:11
dsmallreplaceafill, alright15:11
replaceafilldsmall, the pages package is reacting first to the url (i think)15:11
replaceafilldsmall, that's the "Raised by" part of the 40415:11
dsmallreplaceafill, nothing changed15:12
dsmallreplaceafill, I still get this when I go to /blog
replaceafilldsmall, can you paste your module?15:13
replaceafilldsmall, that's blog.views15:14
mr_germanACTION is back15:15
replaceafilldsmall, that looks fine15:15
replaceafilldsmall, let me test this15:17
replaceafilldsmall, :S15:19
replaceafilldsmall, works for me15:19
dsmallreplaceafill, hmmmm15:19
replaceafilldsmall, what am i missing...?15:19
replaceafilldsmall, it's empty15:20
replaceafilldsmall, i just used startapp too15:20
dsmallreplaceafill, oh15:20
dsmallreplaceafill, fixed it15:22
replaceafilldsmall, what was it?15:23
dsmallreplaceafill, we left something commented out in local_urls.py15:23
replaceafilldsmall, ah15:23
replaceafilldsmall, ok15:23
replaceafilldsmall, the actual url inclusion :D15:23
dsmallreplaceafill, yup :)15:23
replaceafilldsmall, so you see the hello world now?15:23
dsmallreplaceafill, yes15:24
replaceafilldsmall, great15:24
replaceafilldsmall, if you want15:24
replaceafilldsmall, you could turn that into a git repo15:24
replaceafilldsmall, not necessary at this point15:24
replaceafilldsmall, the goal was for you to set up the package first15:24
jelknerit just needed a little TCL, replaceafill ;-)15:25
replaceafilldsmall, now you can add templates15:25
dsmallreplaceafill, right15:25
replaceafilljelkner, lol15:25
replaceafilljelkner, that's so... sweet :S15:25
replaceafilldsmall, so the template for using either in render and render_to_response15:26
replaceafilldsmall, should be located in blog/templates/blog/nameofyourtemplate.html15:26
replaceafilldsmall, and just review the signatures to know what to pass15:26
replaceafilldsmall, render takes the request for example15:26
replaceafilldsmall, render_to_response doesn't (directly)15:27
replaceafilldsmall, i don't think you'll need any models for this first iteration15:27
replaceafilldsmall, so don't worry about those15:27
replaceafilldsmall, read about the query sets in django
replaceafilldsmall, that's what you'll use to filter pages15:28
dsmallreplaceafill, Okay 15:28
replaceafilldsmall, good work and sorry for all the remote tripping we need to have :)15:28
dsmallreplaceafill, no problem!15:29
replaceafilldsmall, a good initial template exercise would be: print the titles of all the pages in your instance15:30
replaceafilldsmall, in the /blog page15:30
dsmallreplaceafill, Alright15:30
replaceafillok, time for lunch for me15:31
replaceafillcatch you later gentlement15:32
replaceafilloh nrcerna is in the channel15:32
replaceafillcatch you later lady and gentlemen15:32
replaceafillACTION goes to get lunch, bb in ~4015:32
jelknerACTION signs off for the day15:34
*** mjsir911 has joined #novawebdev16:00
mr_germanreplaceafill, the footer should static?16:10
mr_germanor a box16:10
replaceafillmr_german, both16:20
replaceafillmr_german, look what zOnny has been doing16:20
replaceafillmr_german, i think the nova logo + tendenci link are static16:21
replaceafillmr_german, or ask him directly16:21
*** mjsir911 has joined #novawebdev17:06
*** lelkneralfaro has joined #novawebdev17:07
*** replaceafill has joined #novawebdev17:48
*** mjsir911 has joined #novawebdev18:12
*** nrcerna has joined #novawebdev18:41
nrcernaz0nny, tendré acceso a internet hasta la noche, bastante tarde, por que debo de ir a hacer unas cosas luego de salir del trabajo, pero siempre te enviaré el logo de Paul Flint, ya lo empecé, (Así como te envié el mock up del sitio ayer por la noche)18:45
*** lelkneralfaro has joined #novawebdev22:22
*** nrcerna has joined #novawebdev22:34

Generated by 2.17.2 by Marius Gedminas - find it at!