manage.py

Why Django does not create full table from a model?

I have 2 models. I run manage.py syncdb but it creates only id fields for 2 models. How to make it generate the remaining fields? Please kindly advise. Your help is much appreciated! Here's my models.py: from django.db import models GENDER_CHOICES = ( ('M', 'Male') , ('F', 'Female') ) ACTIVATION_CHOICES = ( ('Y', 'Activat...

Django + Virtualenv: manage.py commands fail with ImportError of project name.

This is blowing my mind because it's probably an easy solution, but I can't figure out what could be causing this. So I have a new dev box and am setting everything up. I installed virtualenv, created a new environment for my project under ~/.virtualenvs/projectname Then, I cloned my project from github into my projects directory. Noth...

Can't get python.manage.py syncdb to work

I just created my first django app, initialized variables DATABASE_ENGINE and DATABASE_NAME in settings.py, but now when I run python manage.py syncdb, I get the following error Can somebody help? Does this have to do with having two python versions installed? I'm a django/python noob, please help. thanks!! my-computer:~/Django-1.1.1 m...

django manage.py syncdb not working?

Trying to learn Django, I closed the shell and am getting this problem now when I call python manage.py syncdb, any idea what happened?: I've already set up a db. I have manage.py set up in the folder django_bookmarks. What's up here? Traceback (most recent call last): File "manage.py", line 2, in <module> from django.core.manage...

manage.py syncdb error while Django model using non-ascii verbose_name

Hi All, I am pretty new to Django. I want the name of my models to be displayed in Chinese, so i used verbose_name in my meta class of my model, codes below: #this models.py file is encoded in unicode class TS_zone(models.Model): index = models.IntegerField() zone_name = models.CharField(max_length=50); zone_icon = models...

Configuring the Django development server output

Is it possible to configure the output from the Django development server to show the IP address of the client making the request? ...

django:: run manage.py from within django code

How can I run the manage.py script from withing django code? ...