2008-8-1
| 22:52 | Magus- | nfa doesn't work that way |
| 22:52 | Magus- | |
| 22:53 | Klowner | frikker: (search for admin.site.root on that page ^) |
| 22:53 | frikker | Klowner: nothing comes up (you mean the web output right?) |
| 22:54 | saltmind | Klowner: you can get them pretty close though, you'll just have strange headings in the text only, but not unacceptable. |
| 22:54 | frikker | all i did was install docutils |
| 22:54 | Klowner | frikker: I mean the url Magus- just provided ya |
| 22:54 | frikker | ooh thank you |
| 22:55 | frikker | ok weird. why did it work before then? |
| 22:55 | Magus- | duh, you werent in newforms-admin |
| 22:55 | Magus- | or you updated an old svn copy which still had the old urls.py file |
| 22:55 | Magus- | svn up doesn't delete files |
| 22:55 | Magus- | it just checks out new |
| 22:55 | Magus- | er, doesn't always delete |
| 22:55 | frikker | alright got it straightened out |
| 22:55 | frikker | that was my fault. thanks again. |
| 22:56 | frikker | so should my admin interface show something at all? it still shows that i have no permission to edit anything. did my super user not get created correctly? |
| 22:57 | guille_ | frikker: have you added some app to the admin? (and not in models) |
| 22:58 | frikker | this could be that i'm just not used to the new changes? I've enabled django.contrib.flatpages, and am told that this should be enabled in the admin interface |
| 22:58 | frikker | however, when i log in it says i have no permission to edit anything |
| 22:58 | frikker | so is this a problem with my sqlite3 user that i just created? |
| 22:58 | guille_ | you can check it in the shell |
| 22:58 | frikker | guille_: how do i do this? |
| 22:59 | guille_ | python manage.py shell and deal with the user's model |
| 22:59 | guille_ | as you can check in some view or anything |
| 22:59 | guille_ | s/can/could |
| 22:59 | Magus- | there's a suspected bug in nfa in newest svn actually |
| 23:00 | Magus- | a /lot/ of people are getting the no permission thing |
| 23:00 | frikker | hmm |
| 23:01 | sliceofpi | frikker: you can roll back to revision 8173 and it'll work again...that's what i did... |
| 23:01 | frikker | sliceofpi: thank you. ... mind if i ask how you revert? svn revert 8173 or something? |
| 23:02 | Magus- | svn up -r 8173 |
| 23:02 | frikker | thanks Magus- |
| 23:02 | frikker | Magus-: then re-install django with $python setup.py install? |
| 23:03 | Magus- | absolutely not |
| 23:03 | Magus- | why would you ever use setup.py install with svn |
| 23:03 | Magus- | use a symlink as the docs clearly tell you to |
| 23:04 | frikker | Magus-: oh. i see. thank you. |
| 23:05 | frikker | Magus-: i'm following from a different source, not the doc. thats my bad. |
| 23:08 | corporeal | Magus-: because sometimes your repository updates when you don't want the globally-installed django module to update. |
| 23:08 | corporeal | or your local copy rather |
| 23:12 | johannix | is the way to do "SELECT TOP X" with the django db-api, just through pagination? |
| 23:12 | Zalamander | pagination has nothing to do with the db-api |
| 23:13 | Zalamander | you can select the first X items with: Thing.objects.all()[:X] |
| 23:13 | johannix | thanks |
| 23:21 | JaBoJa | Why I cannot use login form in a template this way: {{ form }} ? |
| 23:24 | Magus- | JaBoJa: because it isn't a newforms form yet |
| 23:25 | frikker | sliceofpi: Magus-: that worked. The SVN reversion fixed my permissions errors. Thanks! :) |
| 23:25 | JaBoJa | Magus-: So how should I use it? |
| 23:26 | Magus- | you need to use it field by field like the docs show |
| 23:26 | Magus- | scroll up slightly from here: http://www.djangoproject.com/documentation/auth... |
| 23:27 | Farcaller | what do I have to do to make ImageField work via django admin? |
| 23:27 | Magus- | nothing? |
| 23:27 | Farcaller | ok, it doesn't work then -_- |
| 23:27 | malibu | Hello everyone, and Magnus-. a quick question. render_to_response should also look in the TEMPLATE_DIRS for a template, correct? |
| 23:27 | Magus- | malibu: of course it does |
| 23:27 | malibu | Ok |
| 23:27 | Magus- | that's the entire point of the setting |
| 23:27 | Magus- | telling django where to find templates |
| 23:27 | Magus- | other TEMPLATE_LOADERS can check other dirs though |
| 23:27 | Farcaller | I have icon = models.ImageField(upload_to="/app-icons/") in model and MEDIA_ROOT = ROOT_DIR+'/storage/' in settings |
| 23:28 | malibu | Farcaller: There's two fields in settings.py |
| 23:28 | Magus- | Farcaller: you set upload_to wrong |
| 23:28 | Magus- | you should not have iether slash there |
| 23:28 | Magus- | just upload_to='app-icons' |
| 23:28 | malibu | Farcaller: You're not running on windows are you? |
| 23:28 | Magus- | doesn't matter |
| 23:28 | Magus- | he set it wrong :) |
| 23:28 | Farcaller | malibu: OSX |
| 23:29 | malibu | Magus-: Well sure it's wrong, but I was just going to mention that there is no 'right' on windows.. it doesn |
| 23:29 | malibu | 't work |
| 23:29 | Magus- | sure it does |
| 23:29 | malibu | But OSX should be fine |
| 23:29 | Farcaller | yup, it works |
| 23:29 | Magus- | you just get the wrong path separators on windows, malibu |
| 23:29 | Farcaller | is there any way to rename images to self.id ? |
| 23:29 | Magus- | no |
| 23:30 | malibu | Well it didn't work for me... I even imported my DB from Linux to windows with the same code.. It worked until I re-uploaded the file and then it stopped working. |
| 23:30 | malibu | The path that gets put into the database breaks it |
| 23:30 | Magus- | ... |
| 23:30 | Magus- | why don't you read |
| 23:30 | Magus- | you just get the wrong path separators on windows, malibu |
| 23:30 | Magus- | it enters a \ instead of / on windows |
| 23:30 | malibu | But that broke it for me |
| 23:30 | Magus- | but it will still upload and set fields |
| 23:31 | Magus- | but its not some global break where it won't even upload |
| 23:31 | malibu | Oh yeah it uploaded |
| 23:31 | Magus- | big difference |
| 23:31 | malibu | But the link generated didn't work |
| 23:31 | Magus- | which is more likely the fault of your webserver |
| 23:31 | malibu | I was using the dev webserver |
| 23:31 | Magus- | I can use backslashes in apache and it loads up fine |
| 23:31 | malibu | Could be.. |
| 23:31 | Magus- | well yah, I wouldn't expect runserver to fix them |
| 23:32 | Magus- | its not exactly a great webserver :รพ |
| 23:32 | malibu | lol. |
| 23:33 | malibu | I have another template not being found... |
| 23:33 | JaBoJa | Hmm... I still have a small problem with login: after logging all subpages (eg. http://localhost/forum/) show that I'm logged, except http://localhost/, which shows that I'm logged out even just after logging in. |
| 23:34 | Magus- | did you forget to use RequestContext ? |
| 23:34 | malibu | no.. |