DB migration bug in 1.8.3 when creating ManyToMany relation.

2015-08-03 Thread Chen Xu
Hi Everyone, Does anyone experience a bug in 1.8.3 on creating ManyToMany relations? I have the following very simple code: from django.contrib.auth.models import User class Agent(models.Model): name = models.CharField(max_length=100) users = models.ManyToManyField(User, related_name='a

Re: Question about form security.

2015-02-19 Thread Chen Xu
use the user must be logged in to update their username you can get > the current user from the request. You don't need to have their id inside > the form. > On 20/02/2015 9:49 am, "Chen Xu" wrote: > >> Hi >> I am implementing a feature while building a websi

Question about form security.

2015-02-19 Thread Chen Xu
data-userid to 2, and submit the form, this will result in that user 2 gets updated, right? What is the correct way to prevent this? Thanks -- ⚡ Chen Xu ⚡ -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this grou

Question about subdomains.

2015-02-10 Thread Chen Xu
Hi I am using Django to build a website. I saw some websites have www.ABC.com, support.ABC.com, and career.ABC.com. I wonder how this is achieved. Are these 3 different apps in 1 project, or 3 different projects. Thanks -- ⚡ Chen Xu ⚡ -- You received this message because you are subscribed

Any reliable django stripe payments library

2015-01-19 Thread Chen Xu
Hi Everyone, Is there any reliable django stripe payments library that does not require to run a python manage.py syncdb? The reason I am asking is I am uaing SQLAlchemy instead of its builtin ORM. Thanks -- ⚡ Chen Xu ⚡ -- You received this message because you are subscribed to the Google

Any stable and trusted packages for python XML?

2014-09-19 Thread Chen Xu
Hi Everyone, I wonder if there is any good, stable and trusted django or python package that can convert dict to xml, and load xml into dict, just like what the json package does. Thanks -- ⚡ Chen Xu ⚡ -- You received this message because you are subscribed to the Google Groups "D

Re: Question about email sending with Google Apps

2014-08-19 Thread Chen Xu
x27;s > a no-reply address. At least that's been a case in companies I worked for, > but it depends how big you are and how much you like your customers. You > simply forward the mail to one or more people and filter it as it cook need > in them look over it occasionally > O

Re: Sending email using EmailMultiAlternatives where from_email contains comma

2014-08-19 Thread Chen Xu
gmail.com > <https://groups.google.com/d/msgid/django-users/CAJxq84-r%3DMhN_kymMLsVpKRh7boq0SYobS1v7%3Dw0G5Zbp8zpLA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- ⚡ Chen Xu ⚡ -- You received this me

Re: Question about email sending with Google Apps

2014-08-19 Thread Chen Xu
e a username and password. Unless it's an > alias, in which case you can't use it. Sounds like you've set up an alias > here. You can still use it as a from email address, but can't use it to > authenticate with smtp > On 19/08/2014 6:13 pm, "Chen Xu" wrote:

Question about email sending with Google Apps

2014-08-19 Thread Chen Xu
e.com will not have a password, but send_mail function requires an authentication. I wonder how this is usually done. Thanks -- ⚡ Chen Xu ⚡ -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop rece

Re: How to cache a dynamic web page in django

2014-08-07 Thread Chen Xu
ps://groups.google.com/d/msgid/django-users/750fc613-0e7e-4917-ba3f-2753aab01d04%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/750fc613-0e7e-4917-ba3f-2753aab01d04%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups

How to cache a dynamic web page in django

2014-08-06 Thread Chen Xu
Hi Everyone, I have a dynamic page which generates some data from the database, but the content in the database might be the same for everyone or for a long time, so I wonder what is the best way to cache the page so that it won't be talking to the database every time? Thanks -- ⚡ Chen

How to use send_mail function.

2014-08-04 Thread Chen Xu
ecify them, and call it in the following way. send_mail('Subject here', 'Here is the message.', 'f...@example.com', ['t...@gmail.com'], fail_silently=False, auth_user='exam...@gmail.com', auth_password='password'). It says connection refus

Re: How to call a function when a project starts.

2014-07-30 Thread Chen Xu
I am running 1.6.2 On Wed, Jul 30, 2014 at 4:02 PM, aRkadeFR wrote: > Which version of Django are you running? > > On 30/07/14 15:46, Chen Xu wrote: > > Hi Everyone: > > I would like to call a function when my project starts, basically I want > to > > call a do

How to call a function when a project starts.

2014-07-30 Thread Chen Xu
Chen Xu ⚡ -- 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 dj

Re: Django package to convert Less to CSS

2014-07-29 Thread Chen Xu
m /usr/bin/lessc:23:in `load' from /usr/bin/lessc:23:in `' Where I think "/_global.css" is supposed to be generated. However, it says no such file. Thanks On Tue, Jul 29, 2014 at 9:12 PM, carlos wrote: > https://pypi.python.org/pypi/lesscss > > Cheers > &g

Django package to convert Less to CSS

2014-07-29 Thread Chen Xu
Hi, Everyone I am wondering is there a good django package that can convert less file into css file? Thanks -- ⚡ Chen Xu ⚡ -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emai

Question about including CSRF token.

2014-07-21 Thread Chen Xu
should I handle the CSRF token problem in this case? Thanks -- ⚡ Chen Xu ⚡ -- 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-user

Re: Serving static files from another directory rather than "statics"

2014-07-07 Thread Chen Xu
; http://django-compressor.readthedocs.org/en/latest/ > > and other is > https://django-pipeline.readthedocs.org/en/latest/ > > Cheers > > > On Mon, Jul 7, 2014 at 5:58 PM, Chen Xu wrote: > >> Hi Everyone, >> I am working on a site, under my project in my lo

Serving static files from another directory rather than "statics"

2014-07-07 Thread Chen Xu
IRS = ( os.path.join(STATIC_ROOT, 'static'), os.path.join(STATIC_ROOT, 'static_min') ) I thought doing this will make Django to look for file in both static and static_min, but it did not work. Could someone help. Thanks -- ⚡ Chen Xu ⚡ -- You received this messa

settings.configure() does not allow me to access custom variables in settings.py

2014-07-04 Thread Chen Xu
Hi Everyone, I want to access some variables in my settings.py without starting my server, I know I will have to run settings.configure(); however, running settings.configure() does not allow me to access my custom variables. What should I do with that. Thanks -- ⚡ Chen Xu ⚡ -- You received

Question about static file serving strategy with S3 and Cloudfront

2014-07-02 Thread Chen Xu
cloudfront, and I upload new updated files to s3, are the files still going to be the old ones until next time the cache expires? Thanks -- ⚡ Chen Xu ⚡ -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this grou

Re: Questions about Django email packages.

2014-06-27 Thread Chen Xu
:41 PM, Some Developer wrote: > > On 27/06/2014 20:05, Chen Xu wrote: > > Hi Everyone, > Any recommendations on Django email packages? Recently, I started looking > at django-sitemessage, which looks pretty good to me. I wonder how it does > comparing to others. > > T

Questions about Django email packages.

2014-06-27 Thread Chen Xu
Hi Everyone, Any recommendations on Django email packages? Recently, I started looking at django-sitemessage, which looks pretty good to me. I wonder how it does comparing to others. Thanks -- ⚡ Chen Xu ⚡ -- You received this message because you are subscribed to the Google Groups "D

Question about minifying CSS and JS files.

2014-06-23 Thread Chen Xu
Hi Everyone, I am writing a Django website, I am trying to minify my css and js files, I wonder if there is a good Django package that does it well, or it does not have to be a Django package, it could be any tools. Thanks in advance -- ⚡ Chen Xu ⚡ -- You received this message because you

Question about moving code to product from local or development server.

2014-06-07 Thread Chen Xu
I am building a django website, and wondering what is an easy way to move all of my code to production, is there a tool for doing that, or maybe write my own script? Thanks -- ⚡ Chen Xu ⚡ -- You received this message because you are subscribed to the Google Groups "Django users"

Question about Django Payment Processing Packages.

2014-05-27 Thread Chen Xu
what is the difference between those Django payment processing packages and what Stripe does? Thanks in advance -- ⚡ Chen Xu ⚡ -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emai

Dreamhost for Django hosting.

2014-03-08 Thread Chen Xu
I am trying to host my Django website on Dreamhost, I am wondering if Dreamhost provides a virtual linux box that can allow you to ssh in? Thanks -- ⚡ Chen Xu ⚡ -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe

Questions about Django-socketio and uWsgi Nginx.

2014-02-18 Thread Chen Xu
question on stackoverflow : http://stackoverflow.com/questions/21867839/nginx-and-django-socketio-gives-address-already-in-use-error Could someone please some directions? Thanks in advance. -- ⚡ Chen Xu ⚡ -- You received this message because you are subscribed to the Google Groups "D

Question about django_session table.

2014-01-21 Thread Chen Xu
Hi everyone, I am wondering when I use db as my session backend, does django_session table auto adds an entry to it when I call login? Thanks in advance -- ⚡ Chen Xu ⚡ -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubs

Re: Question about customizing Django's session backend.

2014-01-20 Thread Chen Xu
ib application, while in your own apps > still using sqlalchemy. > > Cheers! > > > 21.01.2014 11:04, Chen Xu пишет: > > Hi everyone, > I am wondering if there is a way to customize django's session backend > like we can do it for user authentication backend, the reason why

Question about customizing Django's session backend.

2014-01-20 Thread Chen Xu
ot do python manage.py syncdb at all. Thanks in advance. -- ⚡ Chen Xu ⚡ -- 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...@googl

Questions about how Django handles user authentication.

2014-01-19 Thread Chen Xu
Hi Everyone, I am wondering how request.User get set during the authentication, do we have to do anything like: request.User = User() or it will have value by itself? Thanks in advance. -- ⚡ Chen Xu ⚡ -- You received this message because you are subscribed to the Google Groups "D

Re: csrf_token is not being set when using Jinja2

2014-01-18 Thread Chen Xu
That gives me : Encountered unknown tag 'csrf_token'. Thanks On Sat, Jan 18, 2014 at 8:57 PM, Mario Gudelj wrote: > Try {% csrf_token %} by itself > On 19/01/2014 12:12 pm, "Chen Xu" wrote: > >> Hi everyone, >> I am using Jinja2 instead of D

csrf_token is not being set when using Jinja2

2014-01-18 Thread Chen Xu
Hi everyone, I am using Jinja2 instead of Django's own template engine, however I am having an issue where csrf_token is empty, I included the following line in my form: But csrf_token has no value. Can someone help? Thanks in advance -- ⚡ Chen Xu ⚡ -- You received this message be

Sqlalchemy in Django with User Authentication Problem

2014-01-16 Thread Chen Xu
ation? Thanks in advance -- ⚡ Chen Xu ⚡ -- 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 gr

Re: Question about Django X_FRAME_OPTIONS setting

2014-01-08 Thread Chen Xu
ect.com/en/dev/ref/request-response/#setting-header-fields > > - Dmitry > > > On Tuesday, January 7, 2014 7:48:52 PM UTC+3, Chen Xu wrote: >> >> Hi >> >> I have a question about Django X_FRAME_OPTIONS setting, I am wondering >> how to set X_FRAME_OPTION

Question about Django X_FRAME_OPTIONS setting

2014-01-07 Thread Chen Xu
Hi I have a question about Django X_FRAME_OPTIONS setting, I am wondering how to set X_FRAME_OPTIONS to allow from, and how to specify a list of hosts that are able to display my page in their frames? Thanks in advance -- ⚡ Chen Xu ⚡ -- You received this message because you are subscribed

Django session question.

2013-12-24 Thread Chen Xu
-- ⚡ Chen Xu ⚡ -- 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

Question about django-boto and S3

2013-12-24 Thread Chen Xu
nerate a public accessible URL based on the private URL, and display it? Thanks in advance -- ⚡ Chen Xu ⚡ -- 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 emai

How to display different contents when refresh every time.

2013-12-19 Thread Chen Xu
provide some sort of session? Thanks in advance -- ⚡ Chen Xu ⚡ -- 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...@googlegrou

How to replace Django ORM with sqlalchemy

2013-12-02 Thread Chen Xu
I am planning to replace Django's ORM with sqlalchemy, does anyone know any good tutorials step by step or github repo that show you how to do it? Thanks -- ⚡ Chen Xu ⚡ -- You received this message because you are subscribed to the Google Groups "Django users" group. To u

where to put a non-model class file.

2013-02-26 Thread Chen Xu
? Thanks in advance -- ⚡ Chen Xu ⚡ -- 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, sen

Re: How Django sends push notifications.

2013-01-28 Thread Chen Xu
Thanks for the info, pyapns looks pretty nice, I am wondering what are the top python notification third party libraries in market, I mean the most used. Thanks On Mon, Jan 28, 2013 at 1:32 AM, Pankaj Singh wrote: > On 00:39 -0500 / 28 Jan, Chen Xu wrote: > > I am recently build

How Django sends push notifications.

2013-01-27 Thread Chen Xu
Hi, Django users, I am recently building a web service for my iphone app, just wondering if Django can send push notifications to iPhone. Thanks -- ⚡ Chen Xu ⚡ -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

How to make django's mysql connections to use utf8mb4 ?

2013-01-23 Thread Chen Xu
p? Thanks -- ⚡ Chen Xu ⚡ -- 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

Re: Model object save gives Warning: Data truncated for column

2013-01-15 Thread Chen Xu
ing database > and to compose models for it. I'll bet that it suggests the DataTimeField. > > Bill > > > On Tue, Jan 15, 2013 at 10:06 AM, Chen Xu wrote: > >> I am using my existing mysql db. I found out that if I have an enum and >> try to insert a value not

Re: Model object save gives Warning: Data truncated for column

2013-01-15 Thread Chen Xu
ng (e,g.; > PostgreSQL, MySQL, etc. - different people will have insights into > different back ends)? Is a stack trace printed - if so, provide it for > us? At least, what is the exact text of the error message? > > Bill > > On Tue, Jan 15, 2013 at 1:19 AM, Chen Xu wrote: &g

Model object save gives Warning: Data truncated for column

2013-01-14 Thread Chen Xu
create an object, and doing a .save() gives me Warning: Data truncated for column ''. However, I checked, the length of my string did not excess the limit. Could anyone help? Thanks -- ⚡ Chen Xu ⚡ -- You received this message because you are subscribed to the Google Groups &qu

Re: What Can I use?

2012-02-11 Thread Chen Xu
. > 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. > -- ⚡ Chen Xu ⚡ -- You received this message because you are subscribed to the Google Gr

Question mark in Django URL Mapping

2012-01-26 Thread Chen Xu
_key=(?P[0-9a-zA-Z]+)$', 'activate_registration'), It seems like the question mark is causing the url mapping not found issue. Does anyone know why. Thanks very much Best regards -- ⚡ Chen Xu ⚡ -- You received this message because you are subscribed to the Google Gro

Does Django provide a function that can get the base_url. Ex: http://127.0.0.1:8000/ if on local, www.example.com if on prod?

2012-01-21 Thread Chen Xu
Hi, everyone: Does Django provide a function that can get the base_url. Ex: http://127.0.0.1:8000/ if on local, www.example.com if on prod? Thanks very much Best regards -- ⚡ Chen Xu ⚡ -- You received this message because you are subscribed to the Google Groups "Django users"

Could someone please give some suggestions about how to set up email sending settings on production.

2012-01-18 Thread Chen Xu
ls on production. Therefore, could someone please help? Thanks very much Best regards -- ⚡ Chen Xu ⚡ -- 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 unsub

Customize "This field is required" message.

2012-01-16 Thread Chen Xu
Hi, everyone: I created a django form, when I validate it, the empty field that can not be none shows error message "This field is required." Is there a way to tell which filed is required instead of just saying "This field is required." in general? Ex: Username is required.

Does anyone know any blogs that write about how to quickly install and deploy a django application on Amazon EC2?

2012-01-11 Thread Chen Xu
Hi, everyone: Does anyone know any blogs that write about how to quickly install and deploy a django application on Amazon EC2? Thanks very much Best regards -- ⚡ Chen Xu ⚡ -- You received this message because you are subscribed to the Google Groups "Django users" group. To po

Could someone who has experience on both Django and Bottle please tell me what are the some differences between those two

2012-01-08 Thread Chen Xu
Hi, everyone: Could someone who has experience on both Django and Bottle please tell me what are the some differences between those two? Thanks very much Best regards -- ⚡ Chen Xu ⚡ -- You received this message because you are subscribed to the Google Groups "Django users" group.

Since Django has its own database schema, can we still use sqlalchemy instead?

2012-01-07 Thread Chen Xu
Hi, everyone: Since Django has its own database schema, can we still use sqlalchemy instead? Thanks very much Best regards -- ⚡ Chen Xu ⚡ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dj

Re: question about django-admin.py

2011-12-25 Thread Chen Xu
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. > -- ⚡ Chen Xu ⚡ -- You received thi

question about django-admin.py

2011-12-25 Thread Chen Xu
settings.py urls.py it is like nested and duplicated directory. Thanks -- ⚡ Chen Xu ⚡ -- 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 unsubs

How to add extra fields to User table

2011-10-23 Thread Chen Xu
ODULE = account.UserProfile", or using Model inheritance? Thanks very much Best regards -- ⚡ Chen Xu ⚡ -- 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

does php code works in Django

2011-10-20 Thread Chen Xu
Hi, everyone: I am new to Django, does anyone know whether php code works in Django? Thanks -- ⚡ Chen Xu ⚡ -- 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 u

Re: a django question about "python manage.py syncdb"

2011-10-14 Thread Chen Xu
t; > If I recall you'll also want to set > > class Meta: > app_label = "the name of your package" > > Because the models directory will screw up Django's ability to auto figure > it out. > > On Saturday, October 15, 2011 at 12:32 AM, Chen Xu wrote:

Re: a django question about "python manage.py syncdb"

2011-10-14 Thread Chen Xu
tried both, neither works. Thanks On Fri, Oct 14, 2011 at 4:31 AM, Phang Mulianto wrote: > maybe you can try remove the models.py coz by default syncdb look for > models.py or anything beneath models folder...but cannot do both of them... > On Oct 14, 2011 5:49 PM, "Chen Xu"

Re: a django question about "python manage.py syncdb"

2011-10-14 Thread Chen Xu
and when i tried "python manage.py sqlall " it gives empty. I think is it because I am not importing properly or something else is going wrong. Thanks On Fri, Oct 14, 2011 at 2:46 AM, Chen Xu wrote: > I know that will work, but what I can do to just make "python

Re: a django question about "python manage.py syncdb"

2011-10-14 Thread Chen Xu
I know that will work, but what I can do to just make "python manage.py syncdb" work? Thanks very much On Fri, Oct 14, 2011 at 2:37 AM, nicolas HERSOG wrote: > You can also type python manage.py sqlall and copy paste sql > instructions in your bd > > On Fri, Oct 14, 201

a django question about "python manage.py syncdb"

2011-10-14 Thread Chen Xu
ss post(models.Model): body = models.TextField() and then when I run "python manage.py syncdb" , it doesn't create the table "post" for me. Could anyone please help? Thanks very much Best regards -- ⚡ Chen Xu ⚡ -- You received this message because you are subscrib

Re: Question about losing port number.

2011-09-26 Thread Chen Xu
ERVER['SERVER_PORT'] in > there > Source: http://php.net/manual/en/reserved.variables.server.php > > > On Mon, Sep 26, 2011 at 3:30 PM, Chen Xu wrote: > >> I have a general question about PHP: >> So basically I have a link, and I want the href to be absolute.

Question about losing port number.

2011-09-26 Thread Chen Xu
90/login, it is missing ":9090". Could anyone please help? -- ⚡ Chen Xu ⚡ -- 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 e

What is the best server for Django

2011-03-09 Thread Chen Xu
I am thinking to buy a server, and integrated with Django environment. So could anyone please give me some suggestions, which server is the best for this, amazon ec2 or? Thanks very much Best regards -- ⚡ Chen Xu ⚡ -- You received this message because you are subscribed to the Google Groups

Re: Having trouble synchronizing the database, can someone help?

2011-02-16 Thread Chen Xu
and delete the tables there > > > > . . . . . . . . . . . . . . . . . . . . . . . . . . > > ** > > Patrick Szabo > XSLT-Entwickler > > LexisNexis > Marxergasse 25, 1030 Wien > > patrick.sz...@lexisnexis.at > > Tel.: +43 (1) 534 52 - 1573 > > Fax: +43 (1) 534 52 - 146 > > > *Von:* django-users@googlegroups.com [m

Re: Having trouble synchronizing the database, can someone help?

2011-02-15 Thread Chen Xu
sse 25, 1030 Wien > > patrick.sz...@lexisnexis.at > > Tel.: +43 (1) 534 52 - 1573 > > Fax: +43 (1) 534 52 - 146 > > > *Von:* django-users@googlegroups.com [mailto:django-users@googlegroups.com] > *Im Auftrag von *Chen Xu > *Gesendet:* Dienstag, 15. Februar 2011 08:45

Re: Having trouble synchronizing the database, can someone help?

2011-02-14 Thread Chen Xu
Tue, Feb 15, 2011 at 10:06 AM, Chen Xu wrote: > >> Hi, everyone: >> I have a question about Django models, >> so I created a Model: >> >> class Person(models.Model): >> name = models.CharField(max_length=60) >> >> and ran the follwing: &g

Having trouble synchronizing the database, can someone help?

2011-02-14 Thread Chen Xu
ain to sync my database, but it does not do it: So I am wondering if it is because since Person model already exists, it will just simply ignore checking if the field changes. And what I should do to sync the database? Thanks -- ⚡ Chen Xu ⚡ -- You received this message because you are

Re: Having trouble overriding template_object_name for the list_detail in generic view

2011-02-11 Thread Chen Xu
o > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- ⚡ Chen Xu ⚡ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to th

Having trouble overriding template_object_name for the list_detail in generic view

2011-02-11 Thread Chen Xu
ms right, right? Could someone please help me ?? Thanks a lot. -- ⚡ Chen Xu ⚡ -- 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

Re: Problem with overriding the default Django admin page.

2011-01-17 Thread Chen Xu
ject's templates directory. This can be any > of the directories you specified in > TEMPLATE_DIRS<http://docs.djangoproject.com/en/dev/ref/settings/#std:setting-TEMPLATE_DIRS> > ." > > 2011/1/17 Chen Xu > > Hi, Django group: >> I am floowing the tutorial 1 on

Problem with overriding the default Django admin page.

2011-01-17 Thread Chen Xu
Hi, Django group: I am floowing the tutorial 1 on Django site, which is a poll application I have problem with overriding the admin page I copied admin/base_site.html from (django/contrib/admin/templates) to /Users/xuchen81/Django/mysite/admin/base_site.html and add this line "/Users/xuchen81/

Re: Problem with DJANGO_SETTINGS_MODULE is undefined

2011-01-15 Thread Chen Xu
py manage.py runserver works fine, but I kinda want to make django-admin.py runserver work too. Could anyone help? Thanks On Sat, Jan 15, 2011 at 3:22 AM, Praveen Krishna R < rpraveenkris...@gmail.com> wrote: > *try * > *manage.py runserver > * > On Sat, Jan 15, 2011 at

Problem with DJANGO_SETTINGS_MODULE is undefined

2011-01-14 Thread Chen Xu
Hi, Django developers: I am very new here, trying to set up my Django I have a project called 'mysite' when I run: $ django-admin.py runserver the terminal gives: Error: Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined then I tried this: $ export DJANG

Re: Problem with getting Sqlite running

2011-01-13 Thread Chen Xu
sorry, everyone, I just figured I made a really stupid question, I should type import sqlite3 instead of import sqlite Thanks everyone On Thu, Jan 13, 2011 at 9:46 AM, Karsten Schulz wrote: > Hi Chen, > > Am 13.01.2011 um 18:25 schrieb Daniel Roseman: > > creating > /System/Library/Frameworks/P

Re: Problem with getting Sqlite running

2011-01-13 Thread Chen Xu
I dont know what is going on, could you please help? Thanks On Thu, Jan 13, 2011 at 9:25 AM, Daniel Roseman wrote: > On Thursday, January 13, 2011 4:30:44 PM UTC, Chen Xu wrote: >> >> Hi: Django users: >> This is my first time to install Django on my unix system, and trying to

Problem with getting Sqlite running

2011-01-13 Thread Chen Xu
Hi: Django users: This is my first time to install Django on my unix system, and trying to get my Sqlite running. After I downloaded pysqlite-2.6.0, and run this command: python setup.py build_static install It gives me: running build_static running build_py running build_ext running install ru