my settings.py
# Django settings for mysite project. DEBUG = False TEMPLATE_DEBUG = DEBUG ADMINS = ( # ('Your Name', 'your_em...@example.com'), ) MANAGERS = ADMINS DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. 'NAME': 'mysite', # Or path to database file if using sqlite3. 'USER': 'root', # Not used with sqlite3. 'PASSWORD': 'java100', # Not used with sqlite3. 'HOST': '127.0.0.1', # Set to empty string for localhost. Not used with sqlite3. 'PORT': '3306', # Set to empty string for default. Not used with sqlite3. } } # Local time zone for this installation. Choices can be found here: # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name # although not all choices may be available on all operating systems. # On Unix systems, a value of None will cause Django to use the same # timezone as the operating system. # If running in a Windows environment this must be set to the same as your # system time zone. TIME_ZONE = 'America/Chicago' # Language code for this installation. All choices can be found here: # http://www.i18nguy.com/unicode/language-identifiers.html LANGUAGE_CODE = 'en-us' SITE_ID = 1 # If you set this to False, Django will make some optimizations so as not # to load the internationalization machinery. USE_I18N = True # If you set this to False, Django will not format dates, numbers and # calendars according to the current locale USE_L10N = True # Absolute filesystem path to the directory that will hold user-uploaded files. # Example: "/home/media/media.lawrence.com/media/" MEDIA_ROOT = '' # URL that handles the media served from MEDIA_ROOT. Make sure to use a # trailing slash. # Examples: "http://media.lawrence.com/media/", "http://example.com/media/" MEDIA_URL = '' # Absolute path to the directory static files should be collected to. # Don't put anything in this directory yourself; store your static files # in apps' "static/" subdirectories and in STATICFILES_DIRS. # Example: "/home/media/media.lawrence.com/static/" STATIC_ROOT = '' # URL prefix for static files. # Example: "http://media.lawrence.com/static/" STATIC_URL = '/static/' # URL prefix for admin static files -- CSS, JavaScript and images. # Make sure to use a trailing slash. # Examples: "http://foo.com/static/admin/", "/static/admin/". ADMIN_MEDIA_PREFIX = '/static/admin/' # Additional locations of static files STATICFILES_DIRS = ( # Put strings here, like "/home/html/static" or "C:/www/django/static". # Always use forward slashes, even on Windows. # Don't forget to use absolute paths, not relative paths. ) # List of finder classes that know how to find static files in # various locations. STATICFILES_FINDERS = ( 'django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder', # 'django.contrib.staticfiles.finders.DefaultStorageFinder', ) # Make this unique, and don't share it with anybody. SECRET_KEY = 't4++q(htx^awwb*$h-0qdm5wd!$+kc6ohv_p48j3b2*&cm!tm*' # List of callables that know how to import templates from various sources. TEMPLATE_LOADERS = ( 'django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader', # 'django.template.loaders.eggs.Loader', ) MIDDLEWARE_CLASSES = ( 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', ) ROOT_URLCONF = 'mysite.urls' TEMPLATE_DIRS = ( # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". # Always use forward slashes, even on Windows. # Don't forget to use absolute paths, not relative paths. "/home/peter/django-projects/templates", #Something like this... ) INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'polls', # Uncomment the next line to enable the admin: 'django.contrib.admin', # Uncomment the next line to enable admin documentation: # 'django.contrib.admindocs', ) # A sample logging configuration. The only tangible logging # performed by this configuration is to send an email to # the site admins on every HTTP 500 error. # See http://docs.djangoproject.com/en/dev/topics/logging for # more details on how to customize your logging configuration. LOGGING = { 'version': 1, 'disable_existing_loggers': False, 'handlers': { 'mail_admins': { 'level': 'ERROR', 'class': 'django.utils.log.AdminEmailHandler' } }, 'loggers': { 'django.request': { 'handlers': ['mail_admins'], 'level': 'ERROR', 'propagate': True, }, } } On 10 August 2011 09:41, Praveen Krishna R <rpraveenkris...@gmail.com>wrote: > *please dump your *settings.py ?! > > On Wed, Aug 10, 2011 at 5:53 AM, Peter Kovgan <peter.kov...@gmail.com>wrote: > >> Thank you guys. >> >> I use development server of django(manage.py runserver). >> >> I created an app. from the official site of the django, this one of the >> first tutorial. >> >> I did it on windows installation. >> >> Then I came home, installed the same app on ubuntu. >> >> Now my conf is: >> >> > django 1.3 >> > on python 2.7.1 >> > ubuntu 11.04 >> > looking through firefox 4 >> >> and it stopped show "stattic content" >> >> HERE IS COLLECTSTATIC:: >> >> peter@peter-big:~/work/django/projects/src/mysite$ python manage.py >> collectstatic >> Traceback (most recent call last): >> File "manage.py", line 14, in <module> >> execute_manager(settings) >> File >> "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", >> line 438, in execute_manager >> utility.execute() >> File >> "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", >> line 379, in execute >> self.fetch_command(subcommand).run_from_argv(self.argv) >> File >> "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", >> line 261, in fetch_command >> klass = load_command_class(app_name, subcommand) >> File >> "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", >> line 68, in load_command_class >> return module.Command() >> File >> "/usr/local/lib/python2.7/dist-packages/django/contrib/staticfiles/management/commands/collectstatic.py", >> line 41, in __init__ >> self.storage = get_storage_class(settings.STATICFILES_STORAGE)() >> File >> "/usr/local/lib/python2.7/dist-packages/django/contrib/staticfiles/storage.py", >> line 23, in __init__ >> raise ImproperlyConfigured("You're using the staticfiles app " >> django.core.exceptions.ImproperlyConfigured: You're using the staticfiles >> app without having set the STATIC_ROOT setting. >> >> I tried to resolve it myself, but nothing has worked. >> >> I used answers to another threads, but probably my installation is somehow >> different. >> >> What exactly I specify in MEDIA_ROOT = ''" ? >> >> Thank you. >> >> >> >> >> >> >> >> >> On 10 August 2011 00:29, Gelonida N <gelon...@gmail.com> wrote: >> >>> On 08/09/2011 09:58 PM, Peter Kovgan wrote: >>> > django 1.3 >>> > on python 2.7.1 >>> > ubuntu 11.04 >>> > looking through firefox 4 >>> > >>> > Dull look, like all javascript has been removed >>> > On windows looks nice, but here all works, but no colors, no styles, >>> > nothing... >>> > >>> > What could it be? >>> >>> >>> Well you don't really give a lot of info, so my guess might be >>> completely wrong. >>> >>> >>> Do you use the django development server ( manage.py runserver) or do >>> you run with apache / some existing server? >>> >>> Did you run the command "manage.py collectstatic"? >>> >>> >>> >>> -- >>> 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. >> > > > > -- > Thanks and Regards, > *Praveen Krishna R* > > -- > 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.