gunicorn myproject.wsgi:application invalid now.

2014-06-19 Thread Jacky
I use gunicorn to deploy my project all the time, but today, in my new project, it raise a error. I check here and there, google around, but it doesn't work. Maybe there was wrong with me. So I create a new project to test, here is all my process: $ virtualen env $ source env/bin/active $ pip

Re: Trouble with STATIC_URL in v1.5.2

2013-09-16 Thread Jacky Tian
7;m the author of the post). -Jacky Tian On Monday, September 16, 2013 3:43:04 PM UTC-4, Adam wrote: > > Maybe this is something well known. > > I'm using STATIC_URL in my templates. Worked perfectly in Django 1.4.x. > Upgraded to v1.5.2. Now STATIC_URL ONLY works when t

Re: no style in admin pages; learning from djangobook.com

2013-07-01 Thread Jacky Tian
Are you using the development server with `python manage.py runserver`? If you are, the static files for the admin should just work. If they don't, you may have messed up something in your settings.py. Otherwise, if you're serving your project from a webserver like Apache or nginx, run `python

Best practices for serving images?

2013-06-21 Thread Jacky Tian
e, and I'm wondering if it's better practice to dynamically resize them server-side based on the width of the viewport, or to just serve the full-size images and scale with CSS? Thanks -Jacky Tian -- You received this message because you are subscribed to the Google Groups "Django use

Re: File Path Question

2013-06-21 Thread Jacky Tian
rver? You shouldn't need to change the slashes in your path, Python handles that for you. -Jacky Tian On Friday, June 21, 2013 11:34:16 AM UTC-4, Nigel Legg wrote: > > In the path shown in my previous email, documents is a subdirectory of the > media directory, which is set in se

Re: File Path Question

2013-06-21 Thread Jacky Tian
What does your project directory tree look like? I suspect the error has to do with where your documents/ directory is located in relation to the working directory. Try loading the document using a path relative to your project root. -Jacky Tian On Friday, June 21, 2013 9:29:20 AM UTC-4

Re: Project settings and application settings.

2013-06-20 Thread Jacky Tian
Django settings are meant to be immutable, so your issues might be stemming from the way you're changing settings at runtime. Most Django projects that need to adjust settings at runtime do so by keeping the mutable settings in the database (e.g. a separate app in the project), so that's an appr

Re: Django import error (Please reply soon)

2013-06-20 Thread Jacky Tian
Add 'myapp' to your INSTALLED_APPS in settings.py, right now Django doesn't know that myapp is an existing package. On Thursday, June 20, 2013 3:06:12 AM UTC-4, sanju wrote: > > > > Hi I have problems with import error in django. Tried looking > > into all possible solutions in Google, but in va

Re: django , python and ides

2013-06-01 Thread Jacky Tedy
I just use Vim -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googl

Re: Trouble with CSS/Static Files

2013-04-04 Thread Jacky Tedy
it looks like you don't have the right template ! You sure you have the right path? 2013/4/4 Vibhu Rishi > I am not sure where I am going wrong, but the CSS files are just not > getting picked up. I have just started a project and am using the dev > server with the runserver command. > > Here's