can django be used in destop application?

2011-08-23 Thread smith jack
i mean not use django for web site development, but for desktop application,
it seems its orm can be used in destop application, isn't it?

-- 
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.



Re: why i cannot load css from django lib?

2011-08-21 Thread smith jack
Thank you, but i am not using django with apache, but with python
manage.py runserver command, i find it confused, if i set the debug
mode to be true, then things may go well, what happened?

2011/8/21 zhijun wu <pinot...@gmail.com>:
> I've encountered such a problem, so maybe I can help.
> I solved that like this:
> First, make sure you have the right permission to the folder 'media'.
> Then,
> #setting.py
> MEDIA_ROOT='' #Use absolute path
> ADMIN_MEDIA_PAREFIX='' #'/media/', focus on the 2 slashs
> #httpd.conf
>
> Alias /media
> /usr/local/lib/python2.6/site-packages/django/contrib/admin/media  #end
> without slash
>
>   "/usr/local/lib/python2.6/site-packages/django/contrib/admin/media">
> #absolute path
>
> AllowOverride None
>
> Options None
>
> Order allow,deny
>
> Allow from all
>
> 
>
>   #2 slashs
>
> SetHandler None
>
> 
>
>  
>
> SetHandler None
>
> 
>
> 2011/8/21 smith jack <thinke...@gmail.com>
>>
>> face a strange problem, now i am using django.contrib.admin module
>> with its default page, but i cannot load css code now, so the web page
>> is ugly
>> what's wrong?
>>
>> --
>> 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.
>>
>
> --
> 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.
>

-- 
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.



why i cannot load css from django lib?

2011-08-20 Thread smith jack
face a strange problem, now i am using django.contrib.admin module
with its default page, but i cannot load css code now, so the web page
is ugly
what's wrong?

-- 
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.



How to make pydev suport django specific syntax?

2011-08-19 Thread smith jack
for example, django have some dynamic mechanism, the code can be
processed wel by django, but pydev will just simply show some error
message,
how to make pydev deal with such dynamics?

-- 
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.



How to change the schma of database using python manage.py syncdb?

2011-08-18 Thread smith jack
for example at first i have a model named url, the code is as follows:

class url(models.Model):
 link=models.URLField(unique=True)

then i change this class as follows:

class url(models.Model):
 link=models.URLField(unique=True)
 hits=models.IntegerField()

at last, i use command  python manage.py syncdb

but was suprised to find that the schema of url table in the database
is not changed

so is there any method to change the shcema of table using django command?

-- 
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.