Error in admin page- TemplateSyntaxError at /admin/login/

2020-01-08 Thread Body Abdo
Dear all , I've error when accesses in admin page : 'admin_static' is not a registered tag library. Must be one of: admin_list admin_modify admin_urls cache django_ajax_tags i18n import_export_tags l10n log static tags tz -- You received this message because you are subscribed to the Google

Re: TemplateSyntaxError at /admin/ Caught AttributeError while rendering: 'NoneType' object has no attribute 'id'

2011-12-20 Thread Branton Davis
It sure seems like #2 that I mentioned before is the issue. Your context processor is overriding the 'user' template context variable that the admin uses. I just looked at some admin templates and they definitely use the 'user' variable. Name it something else or add logic to the context

Re: TemplateSyntaxError at /admin/ Caught AttributeError while rendering: 'NoneType' object has no attribute 'id'

2011-12-20 Thread Branton Davis
On Tue, Dec 20, 2011 at 11:09 PM, Divick Kishore wrote: > On Wed, Dec 21, 2011 at 6:04 AM, Branton Davis > wrote: > > It sounds like your custom user template context variable might be > causing a > > conflict with the default if you're also using

Re: TemplateSyntaxError at /admin/ Caught AttributeError while rendering: 'NoneType' object has no attribute 'id'

2011-12-20 Thread Divick Kishore
Hi Branton, On Wed, Dec 21, 2011 at 11:09 AM, Branton Davis wrote: > > That stack trace is unrelated to the other problem.  Somewhere (guessing > gifts/urls.py) you've referenced a view > at gifts.views.ajax_handle_wishinvite, which doesn't exist.  Check > gifts/views.py for

Re: TemplateSyntaxError at /admin/ Caught AttributeError while rendering: 'NoneType' object has no attribute 'id'

2011-12-20 Thread Divkis
On Dec 21, 7:05 am, Karen Tracey wrote: > People would be able to help you more effectively if you included the stack > trace that goes with the exception. > > Karen > --http://tracey.org/kmt/ The stack trace for the error is: ERROR Caught AttributeError while rendering:

Re: TemplateSyntaxError at /admin/ Caught AttributeError while rendering: 'NoneType' object has no attribute 'id'

2011-12-20 Thread Divick Kishore
On Wed, Dec 21, 2011 at 6:04 AM, Branton Davis wrote: > It sounds like your custom user template context variable might be causing a > conflict with the default if you're also using django.contrib.auth (which is > what the admin uses by default).  I'm guessing that the admin

Re: TemplateSyntaxError at /admin/ Caught AttributeError while rendering: 'NoneType' object has no attribute 'id'

2011-12-20 Thread Karen Tracey
People would be able to help you more effectively if you included the stack trace that goes with the exception. Karen -- http://tracey.org/kmt/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

TemplateSyntaxError at /admin/ Caught AttributeError while rendering: 'NoneType' object has no attribute 'id'

2011-12-20 Thread Divkis
I get the following error when I try to access admin site. I am not sure what is causing this. I am not sure if it could be caused because one of the two reasons: 1. I have a User model in one of my apps which does not have a id as primary key. I have some other key as the primary key. 2. I have

Re: TemplateSyntaxError at /admin/

2011-10-08 Thread Tempomental
That did it! Thanks =) On Oct 8, 4:49 pm, Shawn Milochik wrote: > See your urlpatterns section that has the prefix 'myapp.views.' It's at the > bottom of your e-mail. > > You have some stuff in there that doesn't belong there. It should be broken > out into another

Re: TemplateSyntaxError at /admin/

2011-10-08 Thread Shawn Milochik
See your urlpatterns section that has the prefix 'myapp.views.' It's at the bottom of your e-mail. You have some stuff in there that doesn't belong there. It should be broken out into another "urlpatterns += patterns(...)" section that has no prefix or the correct prefix. -- You received this

TemplateSyntaxError at /admin/

2011-10-08 Thread Tempomental
_populate() File "/usr/local/lib/python2.6/dist-packages/django/core/ urlresolvers.py" in _populate 220. lookups.appendlist(pattern.callback, (bits, p_pattern)) File "/usr/local/lib/python2.6/dist-packages/django/core/ urlresolvers.py" in _get_callback 167.

Re: TemplateSyntaxError at /admin/

2011-01-07 Thread victorkendy
the exception you are getting victor On 7 jan, 20:28, hank23 <hversem...@stchas.edu> wrote: > I have coded a new form with a ModelChoiceField defined on it which is > getting the following error: > > TemplateSyntaxError at /admin/ > Caught TypeError while rendering: __init

TemplateSyntaxError at /admin/

2011-01-07 Thread hank23
I have coded a new form with a ModelChoiceField defined on it which is getting the following error: TemplateSyntaxError at /admin/ Caught TypeError while rendering: __init__() takes at least 2 arguments (6 given)Request Method: GET Request URL: http://127.0.0.1:8000/admin/ Django Version: 1.2.4

Re: TemplateSyntaxError at /admin/

2011-01-05 Thread hank23
The addchoice screen (addchoice.html) code follows below. I included it just in case something might be wrong with it that could be related to or causing this problem, because some of its code is also doing some new things that I've not done before, so there are likely errors in it as well. Here's

Re: TemplateSyntaxError at /admin/

2011-01-05 Thread hank23
OK here's the entire views.py code: # Create your views here. from django.http import Http404 from django.shortcuts import render_to_response, get_object_or_404, get_list_or_404 from django.http import HttpResponseRedirect, HttpResponse from django.core.urlresolvers import reverse from

Re: TemplateSyntaxError at /admin/

2011-01-05 Thread Dan Fairs
Hi, > Near the top of my views.py I do have "from django import forms", so > I'm guessing that based on previous comments that this is ok. Do I > also need to import my specific named-form which IO created for the > new screen/view from my polls.forms.py module? If so is this syntax > correct: >

Re: TemplateSyntaxError at /admin/

2011-01-05 Thread hank23
olls.forms import AddChoiceForm If not let me know. Thanks. On Jan 5, 9:22 am, Dan Fairs <dan.fa...@gmail.com> wrote: > Hi, > > > TemplateSyntaxError at /admin/ > > Caught ViewDoesNotExist while rendering: Tried addchoice in module > > polls.views. Error was: 'modul

Re: TemplateSyntaxError at /admin/

2011-01-05 Thread Dan Fairs
Hi, > TemplateSyntaxError at /admin/ > Caught ViewDoesNotExist while rendering: Tried addchoice in module > polls.views. Error was: 'module' object has no attribute 'form'Request > Method: GET > Request URL: http://127.0.0.1:8000/admin/ > Django Version: 1.2.

TemplateSyntaxError at /admin/

2011-01-05 Thread hank23
I'm not understanding what the error "TemplateSyntaxError at /admin/" is trying to tell me. The full text of the error message looks like this: TemplateSyntaxError at /admin/ Caught ViewDoesNotExist while rendering: Tried addchoice in module polls.views. Error was: 'module'

Re: TemplateSyntaxError at /admin/ - 'module' object has no attribute 'rindex'

2010-02-01 Thread John Abraham
I get the same error in the admin interface after manually removing a field from one of my classes. I removed it in models.py and in the database. The class in question works fine, but for some reason a dependent class (one that refers to the other with a foreign key) has it's admin form broken.

Re: TemplateSyntaxError at /admin/ - 'module' object has no attribute 'rindex'

2010-01-31 Thread Karen Tracey
On Sun, Jan 31, 2010 at 2:39 PM, Martin J. Laubach > wrote: > > 1.(r'^admin/', include(admin.site.urls)), > > That looks like it. > No, that is the correct way to specify admin urls for 1.1 and up. No quotes around admin.site.urls. One

Re: TemplateSyntaxError at /admin/ - 'module' object has no attribute 'rindex'

2010-01-31 Thread Martin J. Laubach
> 1.    (r'^admin/', include(admin.site.urls)), That looks like it. > I tried putting include('admin.site.urls')) but it could not find > 'admin.site.urls' Do you have 'django.contrib.admin' in INSTALLED_APPS? mjl -- You received this message because you are subscribed to the

Re: TemplateSyntaxError at /admin/ - 'module' object has no attribute 'rindex'

2010-01-31 Thread zweb
In my urls.py I see only two possible places where I do not have quotes, 1.(r'^admin/', include(admin.site.urls)), I tried putting include('admin.site.urls')) but it could not find 'admin.site.urls' 2. (r'^register/$', register,{'opensource':True}), True is not in quotes. But it is

Re: TemplateSyntaxError at /admin/ - 'module' object has no attribute 'rindex'

2010-01-31 Thread Martin J. Laubach
> Caught an exception while rendering: 'module' object has no attribute > 'rindex' Sounds you are using foo.bar instead of 'foo.bar' somewhere (ie. module instead of string). mjl -- You received this message because you are subscribed to the Google Groups "Django users" group. To

TemplateSyntaxError at /admin/ - 'module' object has no attribute 'rindex'

2010-01-31 Thread zweb
after login to admin, now I get this error, any clues on what to look for? using django 1.1.1 Ashish TemplateSyntaxError at /admin/ Caught an exception while rendering: 'module' object has no attribute 'rindex' Original Traceback (most recent call last): File "/Library/Python/2.5

Re: TemplateSyntaxError at /admin/ Caught an exception while rendering: (1146, "Table 'winzees.django_admin_log' doesn't exist")

2009-09-10 Thread s.molinari
do i > > fix it? I am stuck... > > I am new at using django as well... just to let you know ;) > > > [snip] > > Exception Type: TemplateSyntaxError at /admin/ > > Exception Value: Caught an exception while rendering: (1146, "Table > > 'winzees.dja

Re: TemplateSyntaxError at /admin/ Caught an exception while rendering: (1146, "Table 'winzees.django_admin_log' doesn't exist")

2009-08-28 Thread Karen Tracey
On Aug 28, 7:57 am, "s.molinari" <s.molinar...@googlemail.com> wrote: > Hiya! > I tried to access the django admin page and I got that error. How do i > fix it? I am stuck... > I am new at using django as well... just to let you know ;) > > [snip] > Exceptio

TemplateSyntaxError at /admin/ Caught an exception while rendering: (1146, "Table 'winzees.django_admin_log' doesn't exist")

2009-08-28 Thread s.molinari
= node.render(context) File "/usr/local/lib/python2.6/dist-packages/django/template/ loader_tags.py" in render 24. result = self.nodelist.render(context) File "/usr/local/lib/python2.6/dist-packages/django/template/ __init__.py" in render 779. bits.a

Re: Newforms admin problem: TemplateSyntaxError at /admin/

2008-07-24 Thread Florencio Cano
In fact it was not the solution. I though that it was because when I browsed to localhost:8000/admin/ I saw the login form but after logging in the error appeared another time. Today I'm going to start a project from the beggining and I'm going to copy the files one by one trying to isolate the

Re: Newforms admin problem: TemplateSyntaxError at /admin/

2008-07-21 Thread Florencio Cano
Uhm, the solution was to delete the database and recreate it. Now it runs correctly. 2008/7/21 Florencio Cano <[EMAIL PROTECTED]>: > Hi, > After viewing the new documentation for the admin interface and > modifying, properly I think, the files when I try to access > http://localhost:8000/admin/

Re: Newforms admin problem: TemplateSyntaxError at /admin/

2008-07-21 Thread Karen Tracey
On Mon, Jul 21, 2008 at 10:59 AM, Florencio Cano <[EMAIL PROTECTED]> wrote: > > Uhm, the solution was to delete the database and recreate it. Now it > runs correctly. > Note this sort of thing (delete/recreate database) IS NOT generally necessary for updating to the newforms admin code, which is

Re: TemplateSyntaxError at /admin/sites/site/ Trying to use Tutorial 02 .96 and svn problems

2008-03-25 Thread jmDesktop
; > Please help so I can use django.  Thank you. > > When I click change on the admin site I get: > > TemplateSyntaxError at /admin/sites/site/ > Invalid arguments to 'cycle': ['cycle', "'row1'", "'row2'"] > > Request Method: GET > Request URL:    ht

TemplateSyntaxError at /admin/sites/site/ Trying to use Tutorial 02 .96 and svn problems

2008-03-25 Thread jmDesktop
it was mentioned on the djangoproject page.) Can I just delete the whole django directory and paste the new svn ones? What about my MySQL stuff, will it be there? Please help so I can use django. Thank you. When I click change on the admin site I get: TemplateSyntaxError at /admin/sites/site

Re: (Newbie) TemplateSyntaxError in admin panel

2007-12-23 Thread Karen Tracey
ons was to follow > > the fix described here because of an apparent flaw with > 0.96.:http://forums.devshed.com/showpost.php?p=1856484=2 > > > I'd guess following these instructions is how you somehow got current SVN templates mixed in with 0.96 code. > > > Thanks! > > &g

Re: (Newbie) TemplateSyntaxError in admin panel

2007-12-23 Thread Rex Eastbourne
e of the tutorial instructions was to follow > the fix described here because of an apparent flaw with > 0.96.:http://forums.devshed.com/showpost.php?p=1856484=2 > > Thanks! > > Rex > > === > TemplateSyntaxError at /admin/polls/poll/ > Invalid a