thanks every one:
@Donald Stufft: Your method eventually solves my problem, I really
appreciate it.
Thanks very much
On Fri, Oct 14, 2011 at 9:34 PM, Donald Stufft wrote:
> You need a __init__.py in your models.py. You also need to import all your
> models into that __init__.py.
>
> If I re
You need a __init__.py in your models.py. You also need to import all your
models into that __init__.py.
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
I tried to delete models.py, and just have a /model subdirectory, but
"pythin manage.py syncdb" doesnt pick up the models in /models directory,
Do i need to change some configurations to tell Django to use /models
subdirectory.
Or do I need __init__.py in my /models subdirectory, I tried both, neit
models should be lowercase, because that's the standard for every single
python package.
Cheers,
AT
On Fri, Oct 14, 2011 at 6:23 AM, Chen Xu wrote:
> Hi,
> I am new to Django.
> I have installed Django and go t everything set up correctly, just started
> some easy tutorials.
>
> So when I do
>
On 14/10/2011, at 8:23 PM, Chen Xu wrote:
> Hi,
> I am new to Django.
> I have installed Django and go t everything set up correctly, just started
> some easy tutorials.
>
> So when I do
> Django-admin.py startapp blog
>
>
> it creates a /blog directory that looks like thsi
> /blog
> -
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" wrote:
> and when i tried "python manage.py sqlall " it gives empty.
> I think is it because I am not importing p
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 manage.py
> syncdb" work
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, 2011 at 11:23 AM, Chen Xu
You can also type python manage.py sqlall and copy paste sql
instructions in your bd
On Fri, Oct 14, 2011 at 11:23 AM, Chen Xu wrote:
> Hi,
> I am new to Django.
> I have installed Django and go t everything set up correctly, just started
> some easy tutorials.
>
> So when I do
> Django-admin.p
Hi,
I am new to Django.
I have installed Django and go t everything set up correctly, just started
some easy tutorials.
So when I do
Django-admin.py startapp blog
it creates a /blog directory that looks like thsi
/blog
- __init__.py
- tests.py
- models.py
- views.py
I know in D
10 matches
Mail list logo