2008-8-1
| 23:34 | malibu | it seems to be prefixing the app name |
| 23:34 | frikker | where do i edit sites? I am trying to get rid of example.com |
| 23:34 | Magus- | that wasn't to you, malibu |
| 23:34 | Magus- | frikker: in admin of course |
| 23:34 | malibu | oh |
| 23:34 | frikker | Magus-: the admin interface? not settings.py? |
| 23:35 | Magus- | frikker: of course |
| 23:35 | Magus- | settings.py only sets the ID to use |
| 23:35 | Magus- | the Site model is in db |
| 23:35 | Magus- | so its in admn |
| 23:35 | Zalamander | you can edit it in a shell too, like any other object |
| 23:35 | malibu | I'm kind of tired. :-( |
| 23:35 | frikker | gotcha. thanks |
| 23:38 | malibu | Is it normal behavior for render_to_response to insert /<app>/ before the template it needs? |
| 23:39 | malibu | I have it looking in TEMPLATE_DIR+'/<app>/login.html' |
| 23:39 | Magus- | render_to_response does NOT change your template path |
| 23:39 | Magus- | ever |
| 23:39 | Magus- | it looks for exactly what you give it |
| 23:40 | malibu | hmm.. |
| 23:40 | Magus- | if you say render_to_response('foo.html') it will look for 'foo.html' in any template dir |
| 23:40 | Magus- | this also includes project/app/templates/foo.html though by default |
| 23:40 | Magus- | because of the app directories template loader |
| 23:40 | Magus- | but not sometemplatedir/app/foo.html |
| 23:41 | saltmind | Magus-: what if the app is somewhere in the pythonpath? |
| 23:41 | Magus- | so what if it is? |
| 23:41 | saltmind | Magus-: I'm asking, would is also look for it there? |
| 23:42 | keseph | pythonpath != template dirs |
| 23:42 | Magus- | saltmind: of course not |
| 23:43 | cschep | Hello everyone, I've installed django on windows, copied django-admin.py to c:\python25\Scripts, added that directory to my path, and now when I issue the command "django-admin.py startproject mysite" the script runs, but it acts like I haven't given it any arguments, just prints the help. Anyone seen this or have any ideas? Thanks! |
| 23:44 | volksman | hey all...I'm kinda lost with this error http://dpaste.com/68944/ |
| 23:44 | curtisc | I'm getting the same error |
| 23:44 | volksman | svn snapshot from today...fresh build...trying the admin tutorial on the django site... |
| 23:44 | volksman | cool..not just me.. :) |
| 23:45 | curtisc | but it's intermittent. If a refresh a page several times, it will go away. Really strange |
| 23:45 | volksman | hrm...mine never goes away |
| 23:45 | curtisc | maybe it's because of the sprint going on |
| 23:46 | volksman | hrm...yeah I shoulda prolly grabbed the stable |
| 23:46 | malibu | ohh... django.contrib.auth.views.login tries to go to users/login.html doesn't it? |
| 23:46 | volksman | learning python and django at the same time...hahaha |
| 23:47 | Zalamander | stable is old. Usually svn is fine, but this week may or may not be an exception. |
| 23:47 | curtisc | might want to try the alpha code to see if it's more stable than today's svn |
| 23:48 | rozwell | volksman: are you following the tutorial? |
| 23:48 | volksman | yep... |
| 23:49 | volksman | Activate the admin site -> is the step I'm on that leads me to the error... |
| 23:49 | volksman | that step says to uncomment 3 lines but only one of them is in the urls.py that came with todays svn |
| 23:49 | volksman | I added the other two manually but it makes no difference |
| 23:49 | volksman | sorry....above for rozwell :) |
| 23:50 | rozwell | volksman: is there a line that says ('^admin/', include('django.contrib.admin.urls')), ? |
| 23:51 | volksman | rozwell: yep..that's the line that is there...the two that are missing are |
| 23:51 | volksman | from django.contrib import admin |
| 23:51 | rozwell | volksman: yes |
| 23:51 | volksman | admin.autodiscover() |
| 23:51 | rozwell | volksman: that shouldn't be happening with trunk/1.0-alpha |
| 23:51 | volksman | rozwell: Django version 1.0-alpha-SVN-unknown |
| 23:52 | rozwell | volksman: well if you created the project with an older version then you'd see the django.contrib.admin.urls bit |
| 23:53 | jb0t | rozwell: thanks for that tip.. worked great |
| 23:53 | rozwell | volksman: remove that from urls.py |
| 23:54 | volksman | rozwell: so comment the line out or remove the include? |
| 23:55 | rozwell | volksman: remove the line ('^admin/', include('django.contrib.admin.urls')), |
| 23:55 | curtisc | is contrib.admin broken right now? |
| 23:55 | volksman | rozwell: ok but now when I view /admin I get the base It Worked! page... |
| 23:56 | volksman | to kill a project you just delete the project directory right? |
| 23:57 | mattmcc | volksman: Do you want to clear the DB too? |
| 23:57 | volksman | if there is a Django method then yes...otherwise I can clear it by hand |
| 23:58 | mattmcc | Well, there's sqlclear, but if you're dropping it entirely, it's easier to just do it the regular way. |
| 23:58 | volksman | cool...so I'm pretty sure I created this project with the SVN but I'll start from scratch...no biggy...I'm sure I'll learn something I missed... :) |
| 23:59 | Magus- | curtisc: yes, admin is broken - r8173 should work though |
| 23:59 | DjangoBot | |
| 23:59 | volksman | I'll report back if I get the same thing when I try again... thanks for the help! |
| 23:59 | curtisc | Magus-: ah, okay. Thanks! |
Page 34 of 34
← Previous
(3,370 total)