Re: Django CSS Not Loaded in Vercel app

2024-10-30 Thread Yogesh Medthiya
install whitenoise run python manage.py collectstatic after all this changes i should work echo "BUILD START" python3.12 -m pip install -r requirements.txt python3.12 manage.py collectstatic --noinput --clear echo "BUILD END" ALLOWED_HOSTS = ['*'] MIDDLEWARE = [ 'django.middleware.s

Re: django css: general query on CDNs and crispy forms

2016-02-24 Thread Adailton (Dhelbegor)
you have a problem here: INSTALLED_APPS = ( 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'myproject.myapp', ###Missed the point ( , ) 'crispy_forms', ###Registered ) -- You r

Re: django css: general query on CDNs and crispy forms

2016-02-23 Thread Mario Gudelj
You're missing a comma after my app inside installed_apps. You can load bootstrap from cdn inside head, before your custom style sheet. Not a problem there. Pip install crispy forms. They'll end up in your site-packages folder. No need to download it and put it inside your project. Run collectst

Re: django css: general query on CDNs and crispy forms

2016-02-23 Thread Lee Hinde
On Feb 23, 2016, at 5:27 PM, clarksonchri...@gmail.com wrote: > > Should i download bootstrap properly or do the CDNs suffice? Your call; but if you want to have a plan B, here’s an example: http://www.hanselman.com/blog/CDNsFailButYourScriptsDontHaveToFallbackFromCDNToLocalJQuery.aspx

django css: general query on CDNs and crispy forms

2016-02-23 Thread clarksonchris81
I have set up a page and have implemented bootstrap using the CDN code that is recommended to access the online bootstrap server: for the CSS: https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"; integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGm

Re: Django + CSS

2011-01-21 Thread Osiaq
No Vovk, it is not :) Official Django docs are missing some vital stuff :) On Jan 20, 5:56 am, Vovk Donets wrote: > Man, this is just a quote from Django Documentation. > > 2011/1/20 Osiaq > > > Same problem here. Follow those rules, is simple and is working > > perfect. > > >http://twigstechtip

Re: Django + CSS

2011-01-21 Thread Mike Ramirez
On Friday, January 21, 2011 11:11:30 am brian.mus...@ff.com wrote: > @ Eric of course I tried putting full url in template first and u know > that didn't work - I wish it were that simple. That's what I'm > talking about. Why not? > What do you mean? http://mysite.com/media/stylessheet.cs

Re: Django + CSS

2011-01-21 Thread Javier Guerra Giraldez
On Fri, Jan 21, 2011 at 2:11 PM, brian.mus...@ff.com wrote: > why > does it have to be so modular and abstract? because it's a good thing? of course, there are several 'shortcuts' for common ways to tie modules together. maybe there could be a couple more -- Javier -- You received this

Re: Django + CSS

2011-01-21 Thread brian.mus...@ff0000.com
Osiaq thanks dude, it worked! Not sure why it had to be so complicated. I just started with this stuff just recently (python + django) - working my way thru the django book. When u search Django CSS there are dozens of different explanations for how to import (import css files) - there should

Re: Django + CSS

2011-01-19 Thread Vovk Donets
Man, this is just a quote from Django Documentation. 2011/1/20 Osiaq > Same problem here. Follow those rules, is simple and is working > perfect. > > > http://twigstechtips.blogspot.com/2009/08/django-how-to-serve-media-files-css.html > > -- *Vovk Donets* python/django developer skype: suu

Re: Django + CSS

2011-01-19 Thread Osiaq
Same problem here. Follow those rules, is simple and is working perfect. http://twigstechtips.blogspot.com/2009/08/django-how-to-serve-media-files-css.html On Jan 20, 1:58 am, "brian.mus...@ff.com" wrote: > Is it me or does it blow your mind that there is not one standard way > of importin

Re: Django + CSS

2011-01-19 Thread Eric Chamberlain
Unless you are trying to serve your CSS inline, which it doesn't appear to be the case from your post, why wouldn't you serve your CSS files like any other static file? Serve the static file with your web server or CDN and put the url in the template, no magic required. On Jan 19, 2011, at 3:5

Django + CSS

2011-01-19 Thread brian.mus...@ff0000.com
Is it me or does it blow your mind that there is not one standard way of importing something as common as CSS files into Django templates? I realize there are a plethora of options as mentioned on the official site here: http://docs.djangoproject.com/en/dev/howto/static-files/ None of which actuall

Problem with django-css

2009-05-27 Thread Travis Jensen
rror that comes up. As you can see, it isn't getting into the django-css code, even tho' it did appear to successfully load the library. I've also included the (hopefully) relevant settings below that. Request Method: GET Request URL: http://localhost:8000/g/home Django Version: 1.0

Re: Django CSS

2008-02-15 Thread oliver
Thought this might help some. I have it setup so my vhost takes care of static data (which i think is the best option, or using a 2nd sever for serving static media) My settings stuff: MEDIA_ROOT = '/web/PROJECT/media/' <- change "PROJECT" MEDIA_URL = '/' ADMIN_MEDIA_PREFIX = '/admin-media/' <

Re: Django CSS

2008-02-15 Thread todd
Hi all, I've been looked at the links here on this thread, and online for how to connect my css but the answer still aludes me. I'm not sure where the things are going wrong, so I'm going to present a dummy environments to try to go through the steps of connecting to static files. Say I've got a

Re: Django CSS

2008-02-04 Thread deniz
Hi, I am using SVN trunk version now. css file is located as /Users/Shared/web/mysite/media/somestyle.css would someone guide me throughly please? base.html: urls.py: (r'^media/(?P.*)', 'django.views.static.serve', {'document_root': 'media'}), settings.py: MEDIA_ROOT = '/Users/Shared/web/mys

Re: Django CSS

2008-02-04 Thread Christian W. Koch
Todd, assuming that you're using mod_python in your production environment, go to http://www.djangoproject.com/documentation/modpython/#serving-media-files for answers Good luck! =) On Feb 4, 2:41 am, todd <[EMAIL PROTECTED]> wrote: > Sorry, I didn't see the reply from Thomas. > > I do have a q

Re: Django CSS

2008-02-03 Thread todd
Sorry, I didn't see the reply from Thomas. I do have a question about this answer, it says to use only in a development environment. How can I handle this issue in a production environment? T On Feb 4, 8:30 am, todd <[EMAIL PROTECTED]> wrote: > Hi Django users, > > I have the same problem... >

Re: Django CSS

2008-02-03 Thread todd
Hi Django users, I have the same problem... Do I have to register the css in urls.py (I shouldn't think so)? Also I found the ADMIN_MEDIA_URL (I believe that's the setting, in the settings.py file) It mentions it should be the path to css, and javascript, but I guess that's only for the admin in

Re: Django CSS

2008-01-02 Thread Ronaldo Z. Afonso
Hi Thomas, Thanks. It helped me a lot. Ronaldo. On Wed, 2008-01-02 at 06:28 -0800, Thomas wrote: > Ronaldo, have a look here: > http://www.djangoproject.com/documentation/static_files/ > > Thomas > > > On Jan 2, 3:23 pm, "Ronaldo Z. Afonso" <[EMAIL PROTECTED]> > wrote: > > Hi all, > > > > I'

Re: Django CSS

2008-01-02 Thread Thomas
Ronaldo, have a look here: http://www.djangoproject.com/documentation/static_files/ Thomas On Jan 2, 3:23 pm, "Ronaldo Z. Afonso" <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm having some problems with Django and CSS. It seems that my templates > just don't load the CSS file. I'm using some thi

Django CSS

2008-01-02 Thread Ronaldo Z. Afonso
Hi all, I'm having some problems with Django and CSS. It seems that my templates just don't load the CSS file. I'm using some think like this: and the "file.css" is in the same directory as all my templates, but all my pages are with no style. So is there any special thing to do to use CSS wit