https://docs.djangoproject.com/en/dev/topics/db/models/#meta-options

2012/7/12 Gink Labrev <gink.lab...@gmail.com>

> If the problem is the table name, use  
> db_table<https://docs.djangoproject.com/en/dev/ref/models/options/#django.db.models.Options.db_table>
> to set database table name.
>
> 2012/7/12 Burhan <its.burha...@gmail.com>
>
>> Hi,
>>
>> I have a project which has two applications, app_1 and app_2, when I run
>> "python manage.py syncdb" it creates tables defined in model.py (same for
>> both apps), but it creates tables like app_1_table1, app_1_table1,
>> app_2_table1, app_2_table2, however, i want both applications use the same
>> table prefix rather two different prefix.
>>
>> more precisely I want my both apps use same model and one single database.
>>
>> any help in this regard would be appreciated.
>>
>> Thanks,
>> Burhan
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msg/django-users/-/CCUnqkFgfS4J.
>> 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.

Reply via email to