Django form build.

2014-10-08 Thread Tsolmon Narantsogt
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 sub

not django just sql

2014-10-06 Thread Tsolmon Narantsogt
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 sub

Django Registration

2014-09-29 Thread Tsolmon Narantsogt
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_REGIST

About compilemessages error.

2014-09-24 Thread Tsolmon Narantsogt
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", li

Model Translate.

2014-09-24 Thread Tsolmon Narantsogt
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 i

mod_wsgi performance problem

2013-01-06 Thread Tsolmon Narantsogt
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

Re: Apache + mod_wsgi

2013-01-04 Thread Tsolmon Narantsogt
Thanks you. I did it. :-) On Fri, Jan 4, 2013 at 10:23 PM, Tsolmon Narantsogt 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. >

Re: Apache + mod_wsgi

2013-01-04 Thread Tsolmon Narantsogt
, Addy Yeow 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 > wrote: > > Hello Comrades.

Apache + mod_wsgi

2013-01-04 Thread Tsolmon Narantsogt
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/

Custom admin interface

2011-03-23 Thread Tsolmon Narantsogt
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

Re: SlugField With URL

2011-03-23 Thread Tsolmon Narantsogt
I'm waiting On Wed, Mar 23, 2011 at 4:57 PM, wrote: > Ok give me few minutes > > Envoyé par mon BlackBerry® smartphone de Tigo > -- > *From: * Tsolmon Narantsogt > *Sender: * django-users@googlegroups.com > *Date: *Wed, 23 Mar 2011 16:56:05

Re: SlugField With URL

2011-03-23 Thread Tsolmon Narantsogt
Can you send me some example On Wed, Mar 23, 2011 at 4:51 PM, wrote: > Hi > In url.py > > Envoyé par mon BlackBerry® smartphone de Tigo > ------ > *From: * Tsolmon Narantsogt > *Sender: * django-users@googlegroups.com > *Date: *Wed, 23 Mar 2

SlugField With URL

2011-03-23 Thread Tsolmon Narantsogt
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

Re: SlugField With URL

2011-03-23 Thread Tsolmon Narantsogt
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.

Django locale/mn doesn't work.

2010-11-23 Thread Tsolmon Narantsogt
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 , m

Conf/locale

2010-11-20 Thread Tsolmon Narantsogt
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 %} {% ge

Re: Django Admin template error

2010-11-13 Thread Tsolmon Narantsogt
Thanks a lot. That's decided On Sun, Nov 14, 2010 at 5:08 AM, Robbington wrote: > 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 encout

Re: Django Admin template error

2010-11-13 Thread Tsolmon Narantsogt
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'^

Re: Django Admin template error

2010-11-13 Thread Tsolmon Narantsogt
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

Re: Django Admin template error

2010-11-13 Thread Tsolmon Narantsogt
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

Django Admin template error

2010-11-13 Thread Tsolmon Narantsogt
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 {% first

Re: Django admin with IE8

2010-10-12 Thread Tsolmon Narantsogt
> 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 r

Django admin with IE8

2010-10-12 Thread Tsolmon Narantsogt
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 becaus

Re: [ Error infinite loop ]

2010-10-06 Thread Tsolmon Narantsogt
Good On Wed, Oct 6, 2010 at 5:22 PM, Daniel Roseman wrote: > On Oct 6, 10:17 am, Tsolmon Narantsogt wrote: > > Hello everybody > > > > I got a this error when i call a page. > > > > *Exception RuntimeError: 'maximum recursion depth exceeded while call

[ Error infinite loop ]

2010-10-06 Thread Tsolmon Narantsogt
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

Re: Error

2010-10-01 Thread Tsolmon Narantsogt
So how fix it ? On Sat, Oct 2, 2010 at 1:37 AM, Brandon Taylor wrote: > Sounds like you have an infinite loop. > > On Oct 1, 12:12 pm, Tsolmon Narantsogt wrote: > > Hi there > > > > i got this error > > > > *Exception RuntimeError: 'maximum recursion

Error

2010-10-01 Thread Tsolmon Narantsogt
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

2010-03-16 Thread Tsolmon Narantsogt
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...@googlegrou

Hello

2009-12-06 Thread Tsolmon Narantsogt
How to use a permission. ./manage.py syncdb then how to create a users permissions -- 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 t

Hello

2009-12-04 Thread Tsolmon Narantsogt
./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 dja