Django form build.
Hello everyone , im new in django. So i wanna add multi product on company. my question is how to build product form. (adding multi) a. class Company(models.Model): product=models.ManyToManyField(Product,verbose_name = u'Products') Thanks. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPs6WScUTB%3DVf0miWx6Sq__u24NeU%2BiBJjHZ4OSPKL9EASYt4Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
not django just sql
Sorry guys. Asking non releated subject... i have table that below structure. *id name lang* 1|Test | en 1|Тест | ru *now i wanna get in one row like this* id | name_en | name_ru 1 | Test | Тест | How to get like this. im using mysql. Thanks. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPs6WSfRTwkNR8K1DzuU7sRP_O7_3SNu4wXm_Yg2ooUDP7yyhg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Django Registration
Hello folks *I got this error Django Registration 'str' object is not callable* INSTALLED_APPS = ( .. 'registration', ) REGISTRATION_EMAIL_REGISTER_SUCCESS_URL = '/accounts/register/complete/' in urls.py get_success_url=getattr( settings, 'REGISTRATION_EMAIL_REGISTER_SUCCESS_URL', lambda request, user: '/' ), Please help what happend to me i dont understand. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPs6WScaQqikbxyNALZ5c4%3D-dYN_s%2Bpt6Y-kD9UBhzJgVgA97w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
About compilemessages error.
When i ./manage.py compilemessages i got error. Pls help me . What is the reason ? File "C:\Python27\lib\site-packages\django\core\management\__init__.py", line 399, in execute_from_command_line utility.execute() File "C:\Python27\lib\site-packages\django\core\management\__init__.py", line 392, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "C:\Python27\lib\site-packages\django\core\management\__init__.py", line 272, in fetch_command klass = load_command_class(app_name, subcommand) File "C:\Python27\lib\site-packages\django\core\management\__init__.py", line 75, in load_command_class module = import_module('%s.management.commands.%s' % (app_name, name)) File "C:\Python27\lib\site-packages\django\utils\importlib.py", line 40, in import_module __import__(name) File "C:\Python27\lib\site-packages\django\core\management\commands\compilemessages.py", line 43 -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/9ec0570d-f09b-4f89-aaf8-f697850ee7d6%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Model Translate.
Hello folks. Im new in Django. Please suggest me which app is suitable models translation. I developing multilanguage site. Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/c39474e1-5fc9-4e6b-997a-693722ea11d7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
mod_wsgi performance problem
Hi folks, My site is performance very low. I deployed in apache mod_wsgi. How to increase my web site performance. Thanks. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Apache + mod_wsgi
Thanks you. I did it. :-) On Fri, Jan 4, 2013 at 10:23 PM, Tsolmon Narantsogt <mnt...@gmail.com>wrote: > Thanks you its works fine. > > But another issue > > Django Version: > 1.3.4Exception Type: > ImportErrorException Value: > > No module named base.urls > > base is my app. > my urls > > urlpatterns = patterns('', > url(r'^$', include('base.urls')), > . > > > > On Fri, Jan 4, 2013 at 9:51 PM, Addy Yeow <ayeo...@gmail.com> wrote: > >> You may want to define WSGIDaemonProcess inside your VirtualHost, see >> >> http://modwsgi.readthedocs.org/en/latest/configuration-directives/WSGIDaemonProcess.html >> >> On Fri, Jan 4, 2013 at 9:36 PM, Tsolmon Narantsogt <mnt...@gmail.com> >> wrote: >> > Hello Comrades. >> > I have a problem when deploying django project. I installed apache and >> > mod_wsgi module and django. >> > And i create virtual host in /etc/apache2/sites-available/mysite >> > >> > content: >> > >> > ServerName name >> > ServerAdmin m...@email.com >> > DocumentRoot /var/www/mydjangoproject/ >> > >> > Order allow,deny >> > Allow from all >> > >> > WSGIScriptAlias / /var/www/mydjangoproject/mydjangoproject/app.wsgi >> > >> > mydjangoproject - it's my root package name >> > >> > and my app.wsgi >> > >> > import os, sys >> > >> > sys.path.append('/var/www') >> > sys.path.append('/var/www/mydjangoproject') >> > os.environ['DJANGO_SETTINGS_MODULE'] = 'mydjangoproject.settings' # >> this is >> > your settings.py file >> > import django.core.handlers.wsgi >> > application = django.core.handlers.wsgi.WSGIHandler() >> > >> > But i got following error (apache log) >> > >> > ImportError: Could not import settings 'mydjangoproject.settings' (Is >> it on >> > sys.path?): No module named settings >> > >> > Pls send me solution. It's my first time :-) >> > >> > Regards. >> > >> > -- >> > You received this message because you are subscribed to the Google >> Groups >> > "Django users" group. >> > To post to this group, send email to django-users@googlegroups.com. >> > To unsubscribe from this group, send email to >> > django-users+unsubscr...@googlegroups.com. >> > For more options, visit this group at >> > http://groups.google.com/group/django-users?hl=en. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Django users" group. >> To post to this group, send email to django-users@googlegroups.com. >> To unsubscribe from this group, send email to >> django-users+unsubscr...@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/django-users?hl=en. >> >> > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Apache + mod_wsgi
Thanks you its works fine. But another issue Django Version:1.3.4Exception Type:ImportErrorException Value: No module named base.urls base is my app. my urls urlpatterns = patterns('', url(r'^$', include('base.urls')), . On Fri, Jan 4, 2013 at 9:51 PM, Addy Yeow <ayeo...@gmail.com> wrote: > You may want to define WSGIDaemonProcess inside your VirtualHost, see > > http://modwsgi.readthedocs.org/en/latest/configuration-directives/WSGIDaemonProcess.html > > On Fri, Jan 4, 2013 at 9:36 PM, Tsolmon Narantsogt <mnt...@gmail.com> > wrote: > > Hello Comrades. > > I have a problem when deploying django project. I installed apache and > > mod_wsgi module and django. > > And i create virtual host in /etc/apache2/sites-available/mysite > > > > content: > > > > ServerName name > > ServerAdmin m...@email.com > > DocumentRoot /var/www/mydjangoproject/ > > > > Order allow,deny > > Allow from all > > > > WSGIScriptAlias / /var/www/mydjangoproject/mydjangoproject/app.wsgi > > > > mydjangoproject - it's my root package name > > > > and my app.wsgi > > > > import os, sys > > > > sys.path.append('/var/www') > > sys.path.append('/var/www/mydjangoproject') > > os.environ['DJANGO_SETTINGS_MODULE'] = 'mydjangoproject.settings' # > this is > > your settings.py file > > import django.core.handlers.wsgi > > application = django.core.handlers.wsgi.WSGIHandler() > > > > But i got following error (apache log) > > > > ImportError: Could not import settings 'mydjangoproject.settings' (Is it > on > > sys.path?): No module named settings > > > > Pls send me solution. It's my first time :-) > > > > Regards. > > > > -- > > You received this message because you are subscribed to the Google Groups > > "Django users" group. > > To post to this group, send email to django-users@googlegroups.com. > > To unsubscribe from this group, send email to > > django-users+unsubscr...@googlegroups.com. > > For more options, visit this group at > > http://groups.google.com/group/django-users?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Apache + mod_wsgi
Hello Comrades. I have a problem when deploying django project. I installed apache and mod_wsgi module and django. And i create virtual host in /etc/apache2/sites-available/mysite *content:* ServerName name ServerAdmin m...@email.com DocumentRoot /var/www/mydjangoproject/ Order allow,deny Allow from all WSGIScriptAlias / /var/www/mydjangoproject/*mydjangoproject*/app.wsgi *mydjangoproject - *it's my root package name and my app.wsgi import os, sys sys.path.append('/var/www') sys.path.append('/var/www/mydjangoproject') os.environ['DJANGO_SETTINGS_MODULE'] = 'mydjangoproject.settings' # this is your settings.py file import django.core.handlers.wsgi application = django.core.handlers.wsgi.WSGIHandler() But i got following error (apache log) ImportError: Could not import settings 'mydjangoproject.settings' (Is it on sys.path?): No module named settings Pls send me solution. It's my first time :-) Regards. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Custom admin interface
Hello list I'm new in Django. How to custom admin interface. ? Thank's Tsolmon -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: SlugField With URL
I'm waiting On Wed, Mar 23, 2011 at 4:57 PM, <nadaei...@gmail.com> wrote: > Ok give me few minutes > > Envoyé par mon BlackBerry® smartphone de Tigo > -- > *From: * Tsolmon Narantsogt <mnt...@gmail.com> > *Sender: * django-users@googlegroups.com > *Date: *Wed, 23 Mar 2011 16:56:05 +0800 > *To: *<django-users@googlegroups.com> > *ReplyTo: * django-users@googlegroups.com > *Subject: *Re: SlugField With URL > > Can you send me some example > > On Wed, Mar 23, 2011 at 4:51 PM, <nadaei...@gmail.com> wrote: > >> Hi >> In url.py >> >> Envoyé par mon BlackBerry® smartphone de Tigo >> -- >> *From: * Tsolmon Narantsogt <mnt...@gmail.com> >> *Sender: * django-users@googlegroups.com >> *Date: *Wed, 23 Mar 2011 16:49:23 +0800 >> *To: *<django-users@googlegroups.com> >> *ReplyTo: * django-users@googlegroups.com >> *Subject: *SlugField With URL >> >> Hello comrades >> >> I defined a some dynamic pages. >> >> The slug should look like : >> >> http://localhost:8000/store/{shoes} >> >> How should i setup my urlpatterns ? >> >> >> Thanks >> Tsolmon. >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Django users" group. >> To post to this group, send email to django-users@googlegroups.com. >> To unsubscribe from this group, send email to >> django-users+unsubscr...@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/django-users?hl=en. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Django users" group. >> To post to this group, send email to django-users@googlegroups.com. >> To unsubscribe from this group, send email to >> django-users+unsubscr...@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/django-users?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: SlugField With URL
Can you send me some example On Wed, Mar 23, 2011 at 4:51 PM, <nadaei...@gmail.com> wrote: > Hi > In url.py > > Envoyé par mon BlackBerry® smartphone de Tigo > ------ > *From: * Tsolmon Narantsogt <mnt...@gmail.com> > *Sender: * django-users@googlegroups.com > *Date: *Wed, 23 Mar 2011 16:49:23 +0800 > *To: *<django-users@googlegroups.com> > *ReplyTo: * django-users@googlegroups.com > *Subject: *SlugField With URL > > Hello comrades > > I defined a some dynamic pages. > > The slug should look like : > > http://localhost:8000/store/{shoes} > > How should i setup my urlpatterns ? > > > Thanks > Tsolmon. > > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
SlugField With URL
Hello comrades I defined a some dynamic pages. The slug should look like : http://localhost:8000/store/{shoes} How should i setup my urlpatterns ? Thanks Tsolmon. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: SlugField With URL
And how to create generic view. > Thanks > Tsolmon. > > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Django locale/mn doesn't work.
Hi fellows. I'm using Django 1.1 version. I make some languages in my settings.py LANGUAGE_CODE = 'en' LANGUAGES = ( ('en','English'), ('mn','Mongolia'), ('ru','Russia'), ) LANGUAGE_COOKIE_NAME = 'lang' Then create po and mo files . ( using django-admin.py makemessages -l ru , mn , en , django-admin.py compilemessages) So Mongolian translation is doesn't work ? (i'm wondering :D) I'm debugging some views in my url.py i put that code. (r'^i18n/setlang/$', 'public.views.set_language'), that's calling below view. public.views: so def set_language(request): print 'CHANGING LANGUAGE' next = request.REQUEST.get('next', None) print 'next:' , next if not next: next = request.META.get('HTTP_REFERER', None) print 'next 1:' , next if not next: next = '/' print 'next 2:' , next response = http.HttpResponseRedirect(next) if request.method == 'POST': lang_code = request.POST.get('language', None) print 'lang_code',lang_code *print 'istrue' , check_for_language(lang_code)* if lang_code and check_for_language(lang_code): if hasattr(request, 'session'): request.session['django_language'] = lang_code print 'hasattr' else: print 'no attr' response.set_cookie(settings.LANGUAGE_COOKIE_NAME, lang_code) return response When i choose Russia or English * print 'istrue' , check_for_language(lang_code)* on console : ss True * * But when i choose Mongolia that's print on console : ss False What happend ? help me Regards Tsolmon. * * -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Conf/locale
Hello fellows. I'm using Django 1.1 version. My goals is create multiple language site. I make po file myprojectname/conf/locale/mn/LC_MESSAGES/django.po and some msgid, msgstr. But it's don't work. My index.html {% load i18n %} {% get_current_language as LANGUAGE_CODE %} {% get_available_languages as LANGUAGES %} {% get_current_language_bidi as LANGUAGE_BIDI %} {% for lang in LANGUAGES %} {{ lang.1 }} {% endfor %} {% trans "current language" %}: {{ request.LANGUAGE_CODE }} My urls.py (r'^i18n/', include('django.conf.urls.i18n')), Thanks. Tsolmon -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Django Admin template error
Thanks a lot. That's decided On Sun, Nov 14, 2010 at 5:08 AM, Robbingtonwrote: > its an ImportError which means that it couldn't find your main urls.py > or possibly a sub urls that you are including. > > Out of interest, this isnt the usual mysite.polls app kind of problem, > how did you encouter this error? > > If you could post the entire error message that you are seeing > including the traceback and the url that you are trying to visit when > you get it. > > > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Django Admin template error
i can't fix that error actually i don't understand this error. my urls.py : #coding:utf8 import os from django.conf.urls.defaults import * from django.contrib import admin from django.conf import settings admin.autodiscover() urlpatterns = patterns('', (r'^$', 'public.views.index'), (r'^public/', include('public.urls')), (r'^products/', include('products.urls')), (r'^partners/', include('partners.urls')), (r'^certificate/', include('certificate.urls')), (r'^contactus/','public.views.Contactus'), (r'^place/$','public.views.Ourplace'), (r'^admin/doc/', include('django.contrib.admindocs.urls')), (r'^admin/(.*)', include(admin.site.urls)), ) urlpatterns += patterns('django.contrib.auth.views', (r'^accounts/login/$', 'login', {'template_name': 'login.html'}), (r'^accounts/logout/$', 'logout', {'template_name': 'logout.html'}), ) And my settings.py file INSTALLED_APPS = ( # Base 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.admindocs', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', # My Own 'chonogol.public', 'chonogol.certificate', 'chonogol.partners', 'chonogol.products', ) i'm wondering . Wha't wrong ? On Sat, Nov 13, 2010 at 9:59 PM, Robbingtonwrote: > Ok, > > Thanks, I was just seeing if it was a more basic error. > > Unfortunately with out seeing more of your code/ error message it is > hard to diagnose the problem. I have to go out now for a few hours, > but if you post the full error message someone/or myself when I get > back maybe able to help you. > > It could be a mirad of things, error in one of your views, a problem > in your settings.py(Check you ROOT_URLCONF to make sure it is pointing > to the right place)or a compatiabilty issue if you have recently > upgraded django, unless I have missed something really obvious. I have > found a few posts that resolve similar problems to get you started: > > http://www.pubbs.net/201002/django/15026-no-module-named-urls.html > > > http://groups.google.com/group/django-users/browse_thread/thread/e54e9801e053ecd3 > > I hope this helps. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Django Admin template error
oops Sorry it's my real urls.py file #coding:utf8 import os from django.conf.urls.defaults import * from django.contrib import admin from django.conf import settings admin.autodiscover() urlpatterns = patterns('', (r'^$', include('public.urls')), (r'^admin/doc/', include('django.contrib.admindocs.urls')), (r'^admin/', include(admin.site.urls)), (r'^products/$', include('products.urls')), (r'^public/', include('public.urls')), (r'^certificate/', include('certificate.urls')), (r'^contactus/$','public.views.Contactus'), (r'^aboutus/$','public.views.Aboutus'), (r'^ourservice/$','public.views.Ourservice'), (r'^news/$','public.views.LastNews'), (r'^place/$','public.views.Ourplace'), (r'^site_media/(?P.*)$', 'django.views.static.serve', {'document_root': os.path.join(os.path.dirname(__file__), 'public/media'), 'show_indexes': False}), (r'^admin_media_prefix/(?P.*)$', 'django.views.static.serve', {'document_root': os.path.join(os.path.dirname(__file__), 'public/media/admin'), 'show_indexes': False}), ) urlpatterns += patterns('django.contrib.auth.views', (r'^accounts/login/$', 'login', {'template_name': 'login.html'}), (r'^accounts/logout/$', 'logout', {'template_name': 'logout.html'}), ) But that's following the error. No module named urls admin/templates/admin/base.html, error at line *30* *30 {% url django-admindocs-docroot as docsroot %}* On Sat, Nov 13, 2010 at 9:03 PM, Robbingtonwrote: > Bit confused, > > You said > > "But i already installed djangodocs on my INSTALLED_APPS ( > > 'django.contrib.admindocs', " > > and in my urls.py > > > (r'^admin/doc/', include('django.contrib.admindocs.urls')), " > > But in your urls.py admin docs is clearly commented out. > > #(r'^admin/doc/', include('django.contrib.admindocs.urls')), > > If you are recieveing this error when visting www.yoursite/admin/doc > this is why. > > Rob > > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Django Admin template error
Yes #coding:utf8 import os from django.conf.urls.defaults import * from django.contrib import admin from django.conf import settings admin.autodiscover() urlpatterns = patterns('', # Example: # Uncomment the admin/doc line below and add 'django.contrib.admindocs' # to INSTALLED_APPS to enable admin documentation: #(r'^admin/doc/', include('django.contrib.admindocs.urls')), # Uncomment the next line to enable the admin: (r'^$', include('public.urls')), #(r'^admin/doc/', include('django.contrib.admindocs.urls')), (r'^admin/', include(admin.site.urls)), (r'^products/$', include('products.urls')), (r'^public/', include('public.urls')), (r'^certificate/', include('certificate.urls')), (r'^contactus/$','public.views.Contactus'), (r'^aboutus/$','public.views.Aboutus'), (r'^ourservice/$','public.views.Ourservice'), (r'^news/$','public.views.LastNews'), (r'^place/$','public.views.Ourplace'), (r'^site_media/(?P.*)$', 'django.views.static.serve', {'document_root': os.path.join(os.path.dirname(__file__), 'public/media'), 'show_indexes': False}), (r'^admin_media_prefix/(?P.*)$', 'django.views.static.serve', {'document_root': os.path.join(os.path.dirname(__file__), 'public/media/admin'), 'show_indexes': False}), ) urlpatterns += patterns('django.contrib.auth.views', (r'^accounts/login/$', 'login', {'template_name': 'login.html'}), (r'^accounts/logout/$', 'logout', {'template_name': 'logout.html'}), ) On Sat, Nov 13, 2010 at 6:45 PM, Robbingtonwrote: > Hi Tsolmon, > Can you post your full urls.py file for me? > > > Rob > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Django Admin template error
Dear comrades i'm using Django 1.1 with Postgres. I got a following error ImportError: No module named urls 212223 {% block branding %}{% endblock %}2425{% if user.is_authenticated and user.is_staff %}2627{% trans 'Welcome,' %}28 {% firstof user.first_name user.username %}.29 {% block userlinks %}30{% url django-admindocs-docroot as docsroot %}31{% if docsroot %}32{% trans 'Documentation' %} But i already installed djangodocs on my INSTALLED_APPS ( 'django.contrib.admindocs', ) and in my urls.py (r'^admin/doc/', include('django.contrib.admindocs.urls')), (r'^admin/', include(admin.site.urls)), So have you any solution ? Thanks Tsolmon. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Django admin with IE8
Good I'm using Django 1.2.1 MySql 5.1 python2.6 and works beautifully on Firefox, but using IE8 I intermittently get a puzzling 'Internet Explorer cannot display this webpage' when I save a record. help me . Thanks Tsolmon On Tue, Oct 12, 2010 at 6:08 PM, Xavier Ordoquy <xordo...@linovia.com>wrote: > Hello, > > If you need help, please provide accurate information on your issue. > Starting with "I get a page not found" will most probably get your mail > immediately discarded. > What page is not found ? what is your setting (dev server, apache, nginx, > proxy+webserver) ? and so on. > > Regards, > Xavier. > > Le 12 oct. 2010 à 11:57, Tsolmon Narantsogt a écrit : > > > Hello List > > > > I get a page not found error. But if I hit refresh I get the admin home > page while the title of the Internet Explorer window remains "HTTP 404...". > The admin seems to work. It just would be nice to not have to hit refresh > every time. > > > > Thanks > > Tsolmon > > > > -- > > You received this message because you are subscribed to the Google Groups > "Django users" group. > > To post to this group, send email to django-us...@googlegroups.com. > > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com> > . > > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Django admin with IE8
Hello List I get a page not found error. But if I hit refresh I get the admin home page while the title of the Internet Explorer window remains "HTTP 404...". The admin seems to work. It just would be nice to not have to hit refresh every time. Thanks Tsolmon -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: [ Error infinite loop ]
Good On Wed, Oct 6, 2010 at 5:22 PM, Daniel Roseman <dan...@roseman.org.uk>wrote: > On Oct 6, 10:17 am, Tsolmon Narantsogt <mnt...@gmail.com> wrote: > > Hello everybody > > > > I got a this error when i call a page. > > > > *Exception RuntimeError: 'maximum recursion depth exceeded while calling > a > > Python object' in ignored* > > * > > * > > Thank you > > Tsolmon > > Oh good. Well, that's interesting. > > Of course, if you want anybody to actually help you, you'll need to > post some actual details. > -- > DR. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
[ Error infinite loop ]
Hello everybody I got a this error when i call a page. *Exception RuntimeError: 'maximum recursion depth exceeded while calling a Python object' in ignored* * * Thank you Tsolmon -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Error
So how fix it ? On Sat, Oct 2, 2010 at 1:37 AM, Brandon Taylor <btaylordes...@gmail.com>wrote: > Sounds like you have an infinite loop. > > On Oct 1, 12:12 pm, Tsolmon Narantsogt <mnt...@gmail.com> wrote: > > Hi there > > > > i got this error > > > > *Exception RuntimeError: 'maximum recursion depth exceeded while calling > a > > Python object' in > > > help me > > > > Thank you > > Tsolmon > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Error
Hi there i got this error *Exception RuntimeError: 'maximum recursion depth exceeded while calling a Python object' in http://groups.google.com/group/django-users?hl=en.
Django With Google App Engine
How to use the Django with Google App Engine ? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Hello
./manage.py syncdb then auto create a users permisions tell me. How to decide -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.