Re: static files in Django 1.7 ; Anything was change?

2014-09-15 Thread Ricardo Daniel Quiroga
hi

in you setings.py add

in INSTALLED_APPS  add   'django.contrib.staticfiles',


STATIC_URL = '/media/'


STATICFILES_DIRS = (
os.path.join(BASE_DIR, "media"), #you template path
)




2014-09-15 14:27 GMT-03:00 Fellipe Henrique :

> I in development mode, DEBUG = True. using the django server.
>
> I already run './manage.py collectstatic'  they create all my static in my
> path.. but don't work...
>
> T.·.F.·.A.·. S+F
> *Fellipe Henrique P. Soares*
>
> e-mail: > echo "lkrrovknFmsgor4ius" | perl -pe \
> 's/(.)/chr(ord($1)-2*3)/ge'
> *Blog: http://fhbash.wordpress.com/ *
> *GitHub: https://github.com/fellipeh *
> *Twitter: @fh_bash*
>
> 2014-09-15 8:41 GMT-03:00 Vladimir Chukharev  >:
>
>> Yes,  there are some changes, see release notes. In particular, you
>> probably need to run 'django-admin collectstatic'.
>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Django users" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/django-users/ExbIrYMBKhs/unsubscribe.
>> To unsubscribe from this group and all its topics, 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/ff527a78-0c27-4b99-89bc-34059132855a%40googlegroups.com
>> 
>> .
>>
>> 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/CAF1jwZEsN8_fWq_SjhWZ-yTt-%2BXnQKZ1gTqgSJnoGw7EseXGgQ%40mail.gmail.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 

Ricardo Daniel Quiroga - L2Radamanthys

   Msn: l2radamant...@gmail.com
   ricardo_q...@hotmail.com

   Email: l2radamant...@gmail.com
   l2radamant...@saltalug.org.ar
   ricardoquiroga@gmail.com

   sitio Web: http://www.l2radamanthys.com.ar
   http://github.com/L2Radamanthys

   Facebook: http://es-la.facebook.com/L2Radamanthys
   Twitter:@l2Radamanthys
-

-- 
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/CAO2-wHa9cV2pv1makDKGv3RYsf2z%2Bv18NyKuFKwAs7M3p5dYcw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: static files in Django 1.7 ; Anything was change?

2014-09-15 Thread Fellipe Henrique
I in development mode, DEBUG = True. using the django server.

I already run './manage.py collectstatic'  they create all my static in my
path.. but don't work...

T.·.F.·.A.·. S+F
*Fellipe Henrique P. Soares*

e-mail: > echo "lkrrovknFmsgor4ius" | perl -pe \ 's/(.)/chr(ord($1)-2*3)/ge'
*Blog: http://fhbash.wordpress.com/ *
*GitHub: https://github.com/fellipeh *
*Twitter: @fh_bash*

2014-09-15 8:41 GMT-03:00 Vladimir Chukharev :

> Yes,  there are some changes, see release notes. In particular, you
> probably need to run 'django-admin collectstatic'.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-users/ExbIrYMBKhs/unsubscribe.
> To unsubscribe from this group and all its topics, 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/ff527a78-0c27-4b99-89bc-34059132855a%40googlegroups.com
> 
> .
>
> 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/CAF1jwZEsN8_fWq_SjhWZ-yTt-%2BXnQKZ1gTqgSJnoGw7EseXGgQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: static files in Django 1.7 ; Anything was change?

2014-09-15 Thread Vladimir Chukharev
Yes,  there are some changes, see release notes. In particular, you 
probably need to run 'django-admin collectstatic'.

-- 
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/ff527a78-0c27-4b99-89bc-34059132855a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: static files in Django 1.7 ; Anything was change?

2014-09-14 Thread Mario Gudelj
What are you using to serve static files? You normally setup your server
e.g. Nginx to take care of this.

Here's an example of Nginx setup file which serves static files from
/webapps/hello_django/static/:

server {

listen   80;
server_name example.com;

client_max_body_size 4G;

access_log /webapps/hello_django/logs/nginx-access.log;
error_log /webapps/hello_django/logs/nginx-error.log;

location /static/ {
alias   /webapps/hello_django/static/;
}

location /media/ {
alias   /webapps/hello_django/media/;
}
...

That was taken from this awesome article on deploying Django
http://michal.karzynski.pl/blog/2013/06/09/django-nginx-gunicorn-virtualenv-supervisor/

On 15 September 2014 11:02, Fellipe Henrique  wrote:

> Hi everybody!
>
> I have my old project in Django 1.6, and works fine in development... when
> DEBUG=True.. but when I update to 1.7, stop to serving static files.
>
> Here is my files:
>
> url: https://gist.github.com/fellipeh/06746184ee0878f70bc2
> template: https://gist.github.com/fellipeh/798b32661d4f9fe376ef
>
> What I missed?
>
> Thanks,
>
> regards,
> Fellipe H.
>
> --
> 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/8690ea0f-35d9-49f2-b4e4-34bb80bdeb28%40googlegroups.com
> 
> .
> 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/CAHqTbjkCnTcp%2Bc9j06aqC8EUTNp1nbR5ePiXtvnc%3D6bdaSsjKA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.