Re: Trouble with STATIC_URL in v1.5.2

2013-09-16 Thread Jacky Tian
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 the DEBUG setting

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

Best practices for serving images?

2013-06-21 Thread Jacky Tian
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 users" group. To u

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 setting

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

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