*** dsmall has joined #novawebdev | 10:07 | |
*** diza has joined #novawebdev | 10:18 | |
*** diza has joined #novawebdev | 10:18 | |
Danny | Buenos dias | 10:19 |
---|---|---|
*** mjsir911 has joined #novawebdev | 10:31 | |
*** jelkner has joined #novawebdev | 11:04 | |
*** mr_german has joined #novawebdev | 11:36 | |
jelkner | Good morning, mr_german! | 11:38 |
jelkner | How are things coming with ORMD? | 11:39 |
mr_german | good morning jelkner | 11:39 |
mr_german | jelkner, good :) | 11:39 |
jelkner | will we have something for next Sunday to show? | 11:39 |
mr_german | ofc | 11:39 |
mr_german | ;) | 11:39 |
jelkner | excellent! | 11:39 |
mr_german | jelkner, I am designing something "FAST" as Douglas said | 11:40 |
jelkner | fast is good, mr_german | 11:44 |
jelkner | we want something just good enough for our collaborators to agree to use | 11:45 |
jelkner | or to suggest changes to before deployment | 11:45 |
jelkner | let me know as soon as you have something ready to show | 11:45 |
mr_german | jelkner, sure | 11:45 |
jelkner | i'll email susannah and kyle at that point to tell them | 11:45 |
mr_german | jelkner, great!, I'll try to get this done ASAP | 11:46 |
jelkner | thnks, mr_german! | 11:46 |
*** replaceafill has joined #novawebdev | 11:47 | |
replaceafill | good morning dsmall | 11:47 |
dsmall | replaceafill, good morning | 11:47 |
replaceafill | dsmall, got my emails? | 11:48 |
dsmall | replaceafill, I have been messing around with pages and stuff | 11:48 |
replaceafill | dsmall, ah cool | 11:48 |
replaceafill | dsmall, try and see if you can figure out what templates are being used by the views you're messing with | 11:49 |
replaceafill | dsmall, like /pages/add | 11:49 |
dsmall | replaceafill, that was what I was about to do | 11:49 |
replaceafill | dsmall, that'll get you a bit more familiar with the app.pages package | 11:49 |
replaceafill | dsmall, cool | 11:49 |
replaceafill | dsmall, also check the apps.pages.models.Page model | 11:49 |
replaceafill | dsmall, you'll see all its attributes | 11:49 |
dsmall | replaceafill, I looked at the different comment views and the Django one looks promising | 11:50 |
dsmall | replaceafill, will dp | 11:50 |
dsmall | do* | 11:50 |
replaceafill | dsmall, the Django one? | 11:50 |
dsmall | replaceafill, this one: https://github.com/django/django-contrib-comments | 11:50 |
replaceafill | dsmall, ah, the excontrib :) | 11:50 |
replaceafill | dsmall, sure | 11:50 |
replaceafill | dsmall, does it support threads? | 11:50 |
dsmall | replaceafill, yes | 11:51 |
replaceafill | dsmall, ah ok | 11:51 |
replaceafill | dsmall, that initial selection criteria i wrote down in the story may change | 11:51 |
replaceafill | dsmall, after we talk to the users | 11:51 |
replaceafill | dsmall, but let's go with it for now | 11:51 |
dsmall | replaceafill, alright | 11:51 |
replaceafill | dsmall, check also the page categories | 11:52 |
replaceafill | dsmall, and subcategories | 11:52 |
replaceafill | dsmall, when you create a page | 11:52 |
replaceafill | dsmall, you can access the categories from /admin too | 11:52 |
dsmall | replaceafill, Okay | 11:52 |
replaceafill | dsmall, but one thing i haven't figure out is how do you add subcategories | 11:52 |
replaceafill | dsmall, without doing it from the "add page" view | 11:52 |
dsmall | replaceafill, alright I can try to do that | 11:53 |
replaceafill | dsmall, so if you could investigate that and let us know | 11:53 |
replaceafill | dsmall, please | 11:53 |
replaceafill | dsmall, so you have enough to keep you busy, yes? | 11:53 |
dsmall | replaceafill, I think so | 11:53 |
dsmall | replaceafill, i'll keep you updated | 11:53 |
replaceafill | dsmall, cool, i'll be around, ping me if you need me | 11:53 |
mr_german | replaceafill, ready to start! | 12:00 |
replaceafill | mr_german, cool | 12:00 |
replaceafill | mr_german, anything you need from me? | 12:00 |
mr_german | replaceafill, im good for now | 12:00 |
replaceafill | mr_german, cool | 12:00 |
replaceafill | mr_german, i'll try to have the servers ready today | 12:00 |
mr_german | replaceafill, cool | 12:01 |
replaceafill | mr_german, so you can start adding content | 12:01 |
replaceafill | mr_german, i'll email you when it's ready | 12:01 |
mr_german | ok | 12:01 |
dsmall | replaceafill, this (https://gitlab.com/novawebdevelopment/nova-base-theme/blob/master/templates/pages/add.html) is the "add page" view correct? | 12:08 |
replaceafill | dsmall, correct | 12:08 |
dsmall | replaceafill, then that means I found a way to change/add categories/subcategories without that | 12:09 |
replaceafill | dsmall, what do you mean_ | 12:10 |
dsmall | replaceafill, when looking at a page via search or the direct domain you can edit categories | 12:10 |
replaceafill | dsmall, through the category form? | 12:10 |
dsmall | replaceafill, im not sure | 12:10 |
replaceafill | dsmall, https://demo.tendenci.com/admin/categories/ | 12:10 |
dsmall | replaceafill, different way | 12:11 |
replaceafill | dsmall, can you point me to a url? | 12:11 |
dsmall | https://demo.tendenci.com/categories/update/pages/page/16/ | 12:11 |
dsmall | replaceafill, the number at the end of the url is the page id | 12:12 |
replaceafill | dsmall, yes | 12:12 |
dsmall | replaceafill, was this what you were looking for? | 12:13 |
replaceafill | dsmall, no i meant to add categories/subcategories independently | 12:13 |
replaceafill | dsmall, without having a page as a context | 12:13 |
dsmall | replaceafill, Ohhh okay | 12:13 |
dsmall | replaceafill, I understand now | 12:13 |
replaceafill | dsmall, https://demo.tendenci.com/admin/ | 12:14 |
replaceafill | dsmall, see the 22. Files for example | 12:14 |
replaceafill | dsmall, there's a Files categories option | 12:15 |
replaceafill | dsmall, that affects only File objects | 12:15 |
replaceafill | dsmall, and you can manage subcategories too "Add another File Sub-Category" | 12:15 |
dsmall | replaceafill, right | 12:16 |
replaceafill | dsmall, Forums have a similar view | 12:16 |
replaceafill | dsmall, Videos too | 12:16 |
replaceafill | dsmall, Pages don't | 12:16 |
dsmall | replaceafill, I see | 12:16 |
replaceafill | dsmall, that could be a task "allow to edit *Page* categories and subcategories trhough the django admin" | 12:16 |
replaceafill | dsmall, the django admin is everything under /admin | 12:17 |
replaceafill | dsmall, that doesn't look like the tendenci theem | 12:17 |
replaceafill | theme* | 12:17 |
dsmall | replaceafill, I could try to make that happen | 12:17 |
replaceafill | dsmall, sure, i think the user will need it | 12:17 |
replaceafill | dsmall, i mean | 12:17 |
replaceafill | dsmall, the user *can* do it from those places we just discussed | 12:17 |
replaceafill | dsmall, but that's not optimal | 12:18 |
dsmall | replaceafill, right | 12:18 |
replaceafill | dsmall, but the /blog has higher priority so try to focus on that first | 12:18 |
dsmall | replaceafill, Okay | 12:19 |
jelkner | replaceafill ping | 12:37 |
replaceafill | jelkner, pong | 12:38 |
jelkner | zOnny gets in at 1:40 pm | 12:38 |
jelkner | i'll ask him to reach out to nrcerna about flint's logo | 12:39 |
jelkner | just an fyi | 12:39 |
replaceafill | jelkner, cool | 12:39 |
replaceafill | jelkner, she seems willing to do it | 12:39 |
replaceafill | to be willing_ | 12:39 |
jelkner | i hope so | 12:39 |
jelkner | that's her role in our coop ;-) | 12:40 |
jelkner | and it is paid work | 12:40 |
jelkner | i chatted with mr_german, btw | 12:41 |
jelkner | he told me he will be ready for sunday | 12:41 |
replaceafill | jelkner, he better will be :/ | 12:41 |
replaceafill | :) | 12:41 |
replaceafill | jelkner, we planned a progress meeting tomorrow at 12:00 pm | 12:41 |
*** lelkneralfaro has joined #novawebdev | 12:42 | |
replaceafill | jelkner, and then at 4 pm on friday | 12:42 |
jelkner | sweet | 12:42 |
replaceafill | jelkner, what time is your meeting with ORMD on sunday? | 12:42 |
jelkner | 1 pm | 12:42 |
replaceafill | jelkner, cool | 12:42 |
replaceafill | jelkner, i'll probably be in Santa Ana btw | 12:42 |
replaceafill | jelkner, but i'll be online | 12:42 |
jelkner | sounds good | 12:42 |
jelkner | ok, i'm going to lunch | 12:43 |
replaceafill | jelkner, later o/ | 12:43 |
replaceafill | lelkneralfaro, you around? | 12:46 |
lelkneralfaro | replaceafill, now yup | 12:58 |
replaceafill | hi lelkneralfaro | 12:59 |
lelkneralfaro | replaceafill, hey | 12:59 |
replaceafill | lelkneralfaro, i just wanted to ask you about my "writing copy" complain lately | 12:59 |
replaceafill | lelkneralfaro, my opinion is that you're the right person to do that | 12:59 |
lelkneralfaro | replaceafill, I am responding to the email as we chat | 12:59 |
replaceafill | lelkneralfaro, ah cool | 12:59 |
lelkneralfaro | replaceafill,:) | 12:59 |
replaceafill | lelkneralfaro, i'll let you be then :) | 12:59 |
lelkneralfaro | replaceafill, I agree | 12:59 |
replaceafill | lelkneralfaro, thanks! | 12:59 |
*** novawebdev has joined #novawebdev | 13:10 | |
novawebdev | lelkneralfaro: Hi Louie, this is the Document I told you in the last email :https://drive.google.com/open?id=1DItVLWPSfrWCNRkB9MZPcrwq6ic-7bnKuS0z_WFclpM | 13:13 |
novawebdev | hello? | 13:14 |
*** novawebdev has left #novawebdev (None) | 13:17 | |
*** nrcerna has joined #novawebdev | 13:17 | |
nrcerna | I'm here :D | 13:17 |
replaceafill | hola nrcerna | 13:17 |
lelkneralfaro | nrcerna, hola :) | 13:17 |
*** zOnny has joined #novawebdev | 13:19 | |
zOnny | Hello World! | 13:19 |
nrcerna | Waht about Flint's Logo? | 13:20 |
zOnny | nrcerna: Do you have any idea about that ? | 13:20 |
zOnny | nrcerna: Flint is running as a candidate | 13:21 |
zOnny | nrcerna: https://paulflint.novawebdevelopment.org/ | 13:21 |
zOnny | He needs another logo | 13:21 |
zOnny | nrcerna: can you help on that ? | 13:22 |
zOnny | nrcerna: Flint is running as a democratic party for Washinton District in Vermont | 13:23 |
zOnny | *washignton | 13:23 |
zOnny | nrcerna: Do you have idea how his logo should looks like ? | 13:25 |
nrcerna | Si, solo quisiera saber para dentro de cuanto lo necesitarian listo? zOnny | 13:25 |
zOnny | nrcerna: ASAP :D | 13:25 |
nrcerna | jajaja la frase favorita de jelkner | 13:26 |
zOnny | nrcerna: replaceafill: likes it | 13:26 |
nrcerna | Podrìa tenerte algo ahora por la noche | 13:26 |
zOnny | nrcerna: that would be great | 13:26 |
nrcerna | eso funciona para ti? zOnny | 13:26 |
replaceafill | zOnny is learning fast from jelkner | 13:27 |
zOnny | nrcerna: si | 13:27 |
nrcerna | Si, ya veo. | 13:27 |
nrcerna | Ok zOnny , podrias enviarme el logo actual de Paul? | 13:28 |
dsmall | replaceafill, I have a question about the architecture of Tendenci | 13:28 |
zOnny | nrcerna: lo necesitas ? | 13:29 |
replaceafill | dsmall, sure | 13:29 |
replaceafill | zOnny, quick nitpick about paul's site | 13:29 |
replaceafill | zOnny, i'm not even sure about my recommendation | 13:29 |
replaceafill | zOnny, but i think you can use rows in bootstrap? | 13:29 |
zOnny | correct replaceafill | 13:29 |
replaceafill | zOnny, the Our Plan part could use them | 13:30 |
replaceafill | zOnny, maybe | 13:30 |
replaceafill | zOnny, to make the heights of the boxes match | 13:30 |
zOnny | I was thinking take that out replaceafill | 13:30 |
nrcerna | Nevermind zOnny Ese me funciona ;) | 13:30 |
replaceafill | zOnny, ah ok | 13:30 |
zOnny | he doesn't have content replaceafill | 13:30 |
replaceafill | zOnny, sure, i understand | 13:30 |
replaceafill | dsmall, you can type your question even if several of us are chatting | 13:31 |
replaceafill | dsmall, that's why we address people individually with their nicks in our messages | 13:31 |
dsmall | replaceafill, right, I was just talking to jelkner about how to pose my question | 13:32 |
zOnny | nrcerna: you can take examples from this link in reference to Flint's party https://www.google.com/search?q=democratic+party+vermont&safe=strict&client=ubuntu&hs=KKa&channel=fs&source=lnms&tbm=isch&sa=X&ved=0ahUKEwjBt6ftrJzbAhVSx1kKHS0UDagQ_AUICygC&biw=1725&bih=685 | 13:32 |
replaceafill | dsmall, ah ok | 13:32 |
dsmall | replaceafill, I am just curious about the best way to start the /blog/ | 13:32 |
dsmall | replaceafill, like would I make a template or? | 13:33 |
replaceafill | dsmall, you need a view | 13:34 |
replaceafill | dsmall, remember our discussion about mapping from url to template? | 13:34 |
replaceafill | dsmall, views have url patterns | 13:34 |
dsmall | replaceafill, ya | 13:35 |
replaceafill | dsmall, that make djanog react | 13:35 |
replaceafill | dsmall, so you'll need both a new url regexp, /blog for example | 13:35 |
replaceafill | dsmall, and a view that reacts to that url | 13:35 |
replaceafill | dsmall, views are usually rendered through templates | 13:35 |
replaceafill | dsmall, so you'll need that too | 13:35 |
dsmall | replaceafill, Okay | 13:36 |
zOnny | nrcerna: Do you have all that you need ? | 13:36 |
nrcerna | Ok zOnny , thank you :D | 13:36 |
dsmall | replaceafill, thanks | 13:36 |
nrcerna | mmm.. I think, si necesito algo te escribo ;) zOnny | 13:37 |
replaceafill | dsmall, here's what i recommend | 13:37 |
replaceafill | dsmall, in your tendenci project | 13:37 |
replaceafill | dsmall, create a blog directory | 13:37 |
replaceafill | dsmall, and convert it into a python package | 13:37 |
replaceafill | dsmall, by adding an empty __init__.py file | 13:37 |
replaceafill | dsmall, then add the url.py module | 13:37 |
replaceafill | dsmall, and for its content copy part of the structure of any of the tendenci apps | 13:37 |
dsmall | replaceafill, alright cool | 13:38 |
zOnny | *zOnny sign out for the Day :D | 13:38 |
replaceafill | dsmall, then you add the views.py module with a function | 13:38 |
replaceafill | dsmall, again you can check tendenci apps | 13:38 |
nrcerna | Por cierto zOnny , viste las instrucciones del sitio? | 13:38 |
replaceafill | dsmall, all of them have both modules urls.py and views.py | 13:38 |
replaceafill | dsmall, you just need one of each | 13:39 |
dsmall | replaceafill, I'll probably use the page one as reference | 13:39 |
replaceafill | dsmall, good idea | 13:39 |
replaceafill | dsmall, last part of the puzzle | 13:40 |
replaceafill | dsmall, to get your instance to really use your new package | 13:40 |
nrcerna | lelkneralfaro: si necesitas algo sobre el "what do you need" estaré pendiente. | 13:41 |
replaceafill | dsmall, is to include it in the conf.local_settings.INSTALLED_APPS tuple | 13:41 |
zOnny | nrcerna: revisando ... | 13:41 |
replaceafill | dsmall, and add the urls to the conf.local_urls.extrapatterns | 13:41 |
nrcerna | zOnny: viste las instrucciones del sitio? | 13:41 |
nrcerna | Ah ok | 13:41 |
replaceafill | dsmall, just like you did for attendance | 13:41 |
dsmall | replaceafill, Okay | 13:42 |
replaceafill | dsmall, https://github.com/tendenci/tendenci/blob/master/tendenci/apps/pages/views.py#L88 | 13:42 |
replaceafill | dsmall, you'll need render_to_response at the end | 13:42 |
replaceafill | dsmall, just like that ^ | 13:43 |
dsmall | replaceafill, thanks | 13:43 |
replaceafill | dsmall, oh and make sure to enable debugging in your project | 13:43 |
replaceafill | dsmall, you do that by | 13:43 |
replaceafill | dsmall, setting conf.local_settings.DEBUG = True | 13:43 |
replaceafill | dsmall, so if something goes wrong you'll have some info why | 13:43 |
dsmall | replaceafill, awesome | 13:43 |
replaceafill | dsmall, let me know how it goes | 13:44 |
dsmall | replaceafill, okay | 13:44 |
replaceafill | dsmall, btw | 13:44 |
replaceafill | dsmall, what you're creating is really a django application | 13:44 |
dsmall | replaceafill, right | 13:44 |
replaceafill | dsmall, there are ways to do all of this automatically, but i think you learn more doing it yourself :) | 13:44 |
replaceafill | dsmall, it's like touching low level wires :D | 13:45 |
dsmall | replaceafill, totally | 13:45 |
replaceafill | dsmall, https://docs.djangoproject.com/en/1.8/ref/django-admin/#startapp-app-label-destination | 13:45 |
replaceafill | dsmall, django-admin is that option in case you're interested | 13:46 |
replaceafill | dsmall, you have it in your virtualenv | 13:46 |
dsmall | replaceafill, Okay, I'll check it out if I need to | 13:46 |
replaceafill | dsmall, kk | 13:46 |
dsmall | replaceafill, should I create a new app for /blog? | 14:09 |
replaceafill | dsmall, yes | 14:10 |
dsmall | replaceafill, okay | 14:10 |
replaceafill | dsmall, we'll refine it's structure later but we discussed should get you started | 14:10 |
replaceafill | its* | 14:10 |
replaceafill | what we* | 14:10 |
dsmall | replaceafill, okay | 14:11 |
mr_german | ACTION goes to take his lunch | 14:12 |
dsmall | replaceafill, we ran into a problem | 14:16 |
dsmall | replaceafill, https://paste.pound-python.org/show/9rAi9riMxvWbeUvSJutg/ | 14:16 |
replaceafill | dsmall, could you ls your project? | 14:18 |
replaceafill | dsmall, and then ls the blog app | 14:18 |
dsmall | replaceafill, give me a minute | 14:18 |
replaceafill | dsmall, ok | 14:18 |
dsmall | replaceafill, https://paste.pound-python.org/show/suZd6OfmJYPdrze7P5dt/ | 14:23 |
replaceafill | dsmall, cool, blog is there | 14:24 |
replaceafill | dsmall, now let's see blog | 14:24 |
dsmall | https://paste.pound-python.org/show/uzOmeCfHkfsDGZtX3qyj/ | 14:24 |
replaceafill | dsmall, oh so you used startapp? | 14:24 |
dsmall | replaceafill, yes | 14:25 |
replaceafill | dsmall, can you paste your conf/local_settings.py module and conf/local_urls.py | 14:26 |
dsmall | replaceafill, ONE SEC | 14:28 |
dsmall | replaceafill, oops caps | 14:28 |
replaceafill | :) | 14:28 |
dsmall | replaceafill, https://paste.pound-python.org/show/RZM0vk16dhVjFog1oxPG/ | 14:28 |
dsmall | replaceafill, that's part of local_settings | 14:29 |
dsmall | replaceafill, part of local_urls.py: https://paste.pound-python.org/show/3QDr3Pj1nVwAYFuPetxw/ | 14:29 |
replaceafill | dsmall, let's try moving 'blog' at the end of INSTALLED_APPS | 14:30 |
replaceafill | dsmall, everything seems fine | 14:31 |
replaceafill | dsmall, let me check the initial error | 14:31 |
dsmall | replaceafill, ok | 14:32 |
dsmall | replaceafill, do i need to migrate? | 14:32 |
replaceafill | dsmall, have you added any models yet? | 14:33 |
dsmall | replaceafill, or makemigration | 14:33 |
dsmall | replaceafill, not yet | 14:33 |
replaceafill | dsmall, then i don't think it's necessary | 14:33 |
replaceafill | dsmall, you're still starting your server with pure "python manage.py runserver" correct? | 14:33 |
dsmall | replaceafill, This is how I am running it: https://paste.pound-python.org/show/Vi3pMMOpZTgi9TUKvzSe/ | 14:35 |
replaceafill | dsmall, oh | 14:35 |
dsmall | replaceafill, this is the error now http://i.imgur.com/7Srnacs.png | 14:35 |
replaceafill | dsmall, there's no urls in the app | 14:35 |
replaceafill | dsmall, yes | 14:36 |
replaceafill | dsmall, startapp doesn't add a urls.py module to the apps | 14:36 |
dsmall | replaceafill, right | 14:36 |
replaceafill | dsmall, and you're referencing that in your local_urls.py moduel | 14:36 |
replaceafill | dsmall, you can comment that out for now | 14:36 |
replaceafill | dsmall, i think that's the committees.search problem | 14:37 |
dsmall | replaceafill, it works | 14:37 |
replaceafill | dsmall, alternatively you could create the urls.py module in blog with just an empty urlpatterns = [] list | 14:38 |
replaceafill | dsmall, try either way | 14:38 |
dsmall | replaceafill, commenting it out worked | 14:38 |
dsmall | replaceafill, it runs normally now | 14:38 |
replaceafill | dsmall, ah ok | 14:39 |
replaceafill | dsmall, you'll need urls.py though | 14:39 |
replaceafill | dsmall, so you may want to create that now | 14:39 |
replaceafill | dsmall, to get it out of the way | 14:39 |
dsmall | replaceafill, will do | 14:39 |
dsmall | replaceafill, I am getting this page: http://i.imgur.com/VoAotsh.png | 14:53 |
dsmall | replaceafill, what else am I missing? | 14:53 |
replaceafill | dsmall, what's in your urls.py module? | 14:54 |
replaceafill | dsmall, i mean do you have blog.urls already or not yet? | 14:54 |
dsmall | replaceafill, the blog one or the conf one? | 14:54 |
dsmall | replaceafill, I do | 14:54 |
replaceafill | replaceafill, is it still emtpy? | 14:54 |
dsmall | replaceafill, no: https://paste.pound-python.org/show/BDTbzUsDWmTSgUMHJysr/ | 14:55 |
replaceafill | replaceafill, ah ok | 14:55 |
dsmall | replaceafill, I have been using this as a reference https://docs.djangoproject.com/en/2.0/intro/tutorial01/ | 14:55 |
replaceafill | dsmall, i see | 14:55 |
replaceafill | dsmall, in the django docs | 14:55 |
replaceafill | dsmall, always look at the bottom right | 14:56 |
replaceafill | dsmall, there's the Documentation version | 14:56 |
replaceafill | dsmall, for tendenci7 (the version you're using at the moment) you need Django 1.8 | 14:56 |
replaceafill | dsmall, always | 14:56 |
dsmall | replaceafill, *face palm* | 14:56 |
replaceafill | dsmall, sorry that i didn't tell you | 14:56 |
replaceafill | dsmall, before | 14:56 |
dsmall | replaceafill, no problem | 14:57 |
replaceafill | dsmall, so you want a url(...) not a path() | 14:57 |
replaceafill | dsmall, you can import url in 1.8 like this: from django.conf.urls import url | 14:59 |
replaceafill | dsmall, and as you can see url/path takes three arguments | 15:01 |
replaceafill | dsmall, the first one is a regexp | 15:01 |
replaceafill | dsmall, you need to set it | 15:01 |
replaceafill | dsmall, otherwise other parts of Tendenci react | 15:02 |
replaceafill | dsmall, if you call /blog | 15:02 |
replaceafill | dsmall, so you can set it to r'^blog/$' | 15:02 |
replaceafill | dsmall, regular python regexp :S | 15:02 |
replaceafill | dsmall, your second argument is fine | 15:03 |
replaceafill | dsmall, but for the third one | 15:03 |
replaceafill | dsmall, it's good practice to split the name into "package.name" | 15:03 |
replaceafill | dsmall, so "blog.index" would be better | 15:03 |
dsmall | replaceafill, alright, I'll let you know | 15:04 |
dsmall | replaceafill, This is my urls.py file now: https://paste.pound-python.org/show/6EMlWo4yaYZ31fp0kZEL/ | 15:06 |
replaceafill | dsmall, the third one should be a keyword argument | 15:07 |
replaceafill | dsmall, name='blog.index' | 15:07 |
dsmall | replaceafill, ahhh | 15:07 |
replaceafill | dsmall, it's like the forth or fifth in the signature | 15:07 |
replaceafill | dsmall, only the first two are required | 15:08 |
dsmall | replaceafill, right | 15:08 |
dsmall | replaceafill, I changed it, but it still doesnt work | 15:08 |
dsmall | replaceafill, "[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 running | 15:09 |
replaceafill | dsmall, in conf.local_settings.INSTALLED_APPS, did you move 'blog'? | 15:09 |
replaceafill | dsmall, or is it still just after attendance? | 15:09 |
replaceafill | dsmall, the order of the apps in INSTALLED_APPS tells django what to process first | 15:10 |
dsmall | replaceafill, here: https://paste.pound-python.org/show/CExRcTg192l7swKxG77k/ | 15:10 |
replaceafill | dsmall, yeah, i'm not sure if that's the cause, but try moving 'blog' back after 'attendance' | 15:11 |
dsmall | replaceafill, alright | 15:11 |
replaceafill | dsmall, the pages package is reacting first to the url (i think) | 15:11 |
replaceafill | dsmall, that's the "Raised by" part of the 404 | 15:11 |
dsmall | replaceafill, nothing changed | 15:12 |
dsmall | replaceafill, I still get this when I go to /blog http://i.imgur.com/qNJRnFR.png | 15:12 |
replaceafill | dsmall, can you paste your views.py module? | 15:13 |
replaceafill | dsmall, that's blog.views | 15:14 |
dsmall | replaceafill, https://paste.pound-python.org/show/52h3ROrHj4ymCS243AUI/ | 15:14 |
mr_german | ACTION is back | 15:15 |
replaceafill | dsmall, that looks fine | 15:15 |
replaceafill | dsmall, let me test this | 15:17 |
replaceafill | dsmall, :S | 15:19 |
replaceafill | dsmall, works for me | 15:19 |
dsmall | replaceafill, hmmmm | 15:19 |
replaceafill | dsmall, what am i missing...? | 15:19 |
dsmall | replaceafill, models.py? | 15:20 |
replaceafill | dsmall, it's empty | 15:20 |
replaceafill | dsmall, i just used startapp too | 15:20 |
dsmall | replaceafill, oh | 15:20 |
dsmall | replaceafill, fixed it | 15:22 |
replaceafill | dsmall, what was it? | 15:23 |
dsmall | replaceafill, we left something commented out in local_urls.py | 15:23 |
replaceafill | dsmall, ah | 15:23 |
replaceafill | dsmall, ok | 15:23 |
replaceafill | dsmall, the actual url inclusion :D | 15:23 |
dsmall | replaceafill, yup :) | 15:23 |
replaceafill | dsmall, so you see the hello world now? | 15:23 |
dsmall | replaceafill, yes | 15:24 |
replaceafill | dsmall, great | 15:24 |
replaceafill | dsmall, if you want | 15:24 |
replaceafill | dsmall, you could turn that into a git repo | 15:24 |
replaceafill | dsmall, not necessary at this point | 15:24 |
replaceafill | dsmall, the goal was for you to set up the package first | 15:24 |
jelkner | it just needed a little TCL, replaceafill ;-) | 15:25 |
replaceafill | dsmall, now you can add templates | 15:25 |
dsmall | replaceafill, right | 15:25 |
replaceafill | jelkner, lol | 15:25 |
replaceafill | jelkner, that's so... sweet :S | 15:25 |
replaceafill | dsmall, so the template for using either in render and render_to_response | 15:26 |
replaceafill | dsmall, should be located in blog/templates/blog/nameofyourtemplate.html | 15:26 |
replaceafill | dsmall, and just review the signatures to know what to pass | 15:26 |
replaceafill | dsmall, render takes the request for example | 15:26 |
replaceafill | dsmall, render_to_response doesn't (directly) | 15:27 |
replaceafill | dsmall, i don't think you'll need any models for this first iteration | 15:27 |
replaceafill | dsmall, so don't worry about those | 15:27 |
replaceafill | dsmall, read about the query sets in django https://docs.djangoproject.com/en/1.8/ref/models/querysets/ | 15:28 |
replaceafill | dsmall, that's what you'll use to filter pages | 15:28 |
dsmall | replaceafill, Okay | 15:28 |
replaceafill | dsmall, good work and sorry for all the remote tripping we need to have :) | 15:28 |
dsmall | replaceafill, no problem! | 15:29 |
replaceafill | dsmall, a good initial template exercise would be: print the titles of all the pages in your instance | 15:30 |
replaceafill | dsmall, in the /blog page | 15:30 |
dsmall | replaceafill, Alright | 15:30 |
replaceafill | https://docs.djangoproject.com/en/1.8/ref/templates/builtins/#for | 15:31 |
replaceafill | ok, time for lunch for me | 15:31 |
replaceafill | catch you later gentlement | 15:32 |
replaceafill | gentlemen* | 15:32 |
replaceafill | oh nrcerna is in the channel | 15:32 |
replaceafill | catch you later lady and gentlemen | 15:32 |
replaceafill | ACTION goes to get lunch, bb in ~40 | 15:32 |
jelkner | ACTION signs off for the day | 15:34 |
*** mjsir911 has joined #novawebdev | 16:00 | |
mr_german | replaceafill, the footer should static? | 16:10 |
mr_german | or a box | 16:10 |
mr_german | ? | 16:10 |
replaceafill | mr_german, both | 16:20 |
mr_german | both | 16:20 |
mr_german | ? | 16:20 |
replaceafill | mr_german, look what zOnny has been doing | 16:20 |
mr_german | oh | 16:20 |
replaceafill | mr_german, i think the nova logo + tendenci link are static | 16:21 |
replaceafill | mr_german, or ask him directly | 16:21 |
*** mjsir911 has joined #novawebdev | 17:06 | |
*** lelkneralfaro has joined #novawebdev | 17:07 | |
*** replaceafill has joined #novawebdev | 17:48 | |
*** mjsir911 has joined #novawebdev | 18:12 | |
*** nrcerna has joined #novawebdev | 18:41 | |
nrcerna | z0nny, 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 |
nrcerna | zOnny* | 18:47 |
*** lelkneralfaro has joined #novawebdev | 22:22 | |
*** nrcerna has joined #novawebdev | 22:34 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!