Forums

cant create any table from models.py

hellow!!! (sorry for my english)

i use virtualenv with

(VENV)22:21 ~/lustry $ pip freeze
Django==1.6.5
Pillow==2.4.0
distribute==0.6.34

wcgi

activate_this = '/home/Lustry/VENV/bin/activate_this.py'
with open(activate_this) as f:
    code = compile(f.read(), activate_this, 'exec')
    exec(code, dict(__file__=activate_this))

import os
import sys

# add your project directory to the sys.path
project_home = '/home/Lustry/lustry'
if project_home not in sys.path:
    sys.path.append(project_home)

# set environment variable to tell django where your settings.py is
os.environ['DJANGO_SETTINGS_MODULE'] = 'lustry/settings'

# serve django via WSGI
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()

settings.py

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3',
        'NAME': os.path.join(BASE_DIR, 'db.lustry'),
    }
}

models.py

# -*- coding: utf-8 -*-
from django.db import models

class Category(models.Model):

    category_title = models.CharField(max_length=100, verbose_name='Название категории', blank=False)

so.... when run syncdb django doesnt create tables for my model.... it creates only standart tables... why?

solved!!! i didnt add my app to installed apps!

that was going to be my guess! glad you figured it out :)