Django don't load css

2014-12-14 Thread Jovana Andjelkovic
I am trying to run a site on Django development server but my css don't 
load. When I open dev tools in Chrome I see in network that css is loaded 
as text/plain and not as text/css.My link is good,because when I open it,it 
opens my css file.And my admin site don't have css also,and that can't be 
my mistake because I didn't do anything with it! As soon as I change 
something in css in dev tools css starts working but as soon as I reload 
the page it is gone!

-- 
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@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/e5a23d51-5866-42d0-9e9e-2e69a8c3c340%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django don't load css

2014-12-15 Thread Jovana Andjelkovic
It is not 404,it is 304 NOT MODIFIED,and it load it as text/plain...


On Monday, December 15, 2014 8:23:22 AM UTC+1, somecallitblues wrote:
>
> You may have an error in your css file if the link isn't 404ring when you 
> look at your console or the chrome tab...
> On 15/12/2014 1:36 pm, "Jovana Andjelkovic"  > wrote:
>
>> I am trying to run a site on Django development server but my css don't 
>> load. When I open dev tools in Chrome I see in network that css is loaded 
>> as text/plain and not as text/css.My link is good,because when I open it,it 
>> opens my css file.And my admin site don't have css also,and that can't 
>> be my mistake because I didn't do anything with it! As soon as I change 
>> something in css in dev tools css starts working but as soon as I reload 
>> the page it is gone!
>>
>> -- 
>> 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...@googlegroups.com .
>> To post to this group, send email to django...@googlegroups.com 
>> .
>> Visit this group at http://groups.google.com/group/django-users.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/e5a23d51-5866-42d0-9e9e-2e69a8c3c340%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/django-users/e5a23d51-5866-42d0-9e9e-2e69a8c3c340%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/66d19a5f-78ca-45a1-9be2-6e85e18cd498%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django don't load css

2014-12-15 Thread Jovana Andjelkovic
This is my html head with css link:

Rango


This is settings.py:
import os
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
TEMPLATE_PATH = os.path.join(BASE_DIR, 'templates')
STATIC_PATH = os.path.join(BASE_DIR, 'static')
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
STATIC_ROOT = os.path.join(BASE_DIR, 'root/static')

DEBUG = True
TEMPLATE_DEBUG = True
ALLOWED_HOSTS = []
INSTALLED_APPS = (
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'rango',
)
MIDDLEWARE_CLASSES = (
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
)
ROOT_URLCONF = 'tango_with_django.urls'
WSGI_APPLICATION = 'tango_with_django.wsgi.application'

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
}
}

LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'UTC'
USE_I18N = True
USE_L10N = True
USE_TZ = True

STATIC_URL = '/static/'
STATICFILES_DIRS = (
STATIC_PATH,
)
TEMPLATE_DIRS = [
TEMPLATE_PATH,
]
MEDIA_URL = '/media/'




-- 
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@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/5306c261-59f5-4047-95d1-a0444ed122f0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django don't load css

2014-12-15 Thread Jovana Andjelkovic
Sorry,I didn't understand him :) 
I check css with css validator and it didn't find any errors.It is simple 
css file,just to check if everithing is working.
I don't understand why css is not recognised as text/css,but as text/plain.
Thank you for your answer...

-- 
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@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/9adf89e9-7ae9-4be2-978b-8027dc9bb571%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django don't load css

2014-12-16 Thread Jovana Andjelkovic
Thank you,I will.I'll let you know if I solve my problem...

-- 
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@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/96b85e25-d7d1-437a-964d-983434283921%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django don't load css

2014-12-16 Thread Jovana Andjelkovic
Thank you very much,Vadims helped me.
The problem wasn't related to the Django,I installed NuSphere and it 
changed values in os registry.
In regedit.exe I changed all css to text/css,restarted PC and css is now 
working fine...
Here is registry fix,if someone who is having this type of problem don't 
want to change registry manualy:
http://community.skype.com/t5/Windows-desktop-client/Skype-6-10-0-104-BIG-Login-screen-problem/m-p/2104915/highlight/true#M202212
 

-- 
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@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/54632d50-0b80-47f3-9ad0-44bc2ad58650%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.