Re: Problem with static files inDjango-Oscar

2025-04-05 Thread KEVIN DAVID
*Check **STATICFILES_DIRS* Since you are running locally, you need to add: python CopyEdit STATICFILES_DIRS = [BASE_DIR / "static"] This tells Django where to look for static files in development mode. *2. Use **runserver** With **--insecure** (For Debugging)* Try running the development s

Re: Problem with static files inDjango-Oscar

2025-04-04 Thread Aniket Raj Singh
​When deploying a Django project with DEBUG = False, static files are not served automatically by Django. To handle static files in production, you can use *WhiteNoise*. After installing WhiteNoise, add 'whitenoise.middleware.WhiteNoiseMiddleware' to your MIDDLEWARE settings and set STATICFILES

Re: Problem with static files inDjango-Oscar

2025-03-30 Thread Hugo Chavar
Hi Ewa looks like you need one more setting for development: STATICFILES_DIRS = [ BASE_DIR / 'static_files', # or whatever directory contains your static files ] If that doesn't work, share your urls.py Maybe it worked for a small project because you have DEBUG = False in that case. Let

Re: Problem with static files inDjango-Oscar

2025-03-30 Thread Faisal Tahseen
If you Facing static file issue in your Django project. You should use Base_Dir include OS *STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')STATICFILES_DIRS = [ os.path.join(BASE_DIR, 'static'), * Because you run the Project Locally. I hope this will help you On Monday, 31 March 2025 at

Re: Problem with static files inDjango-Oscar

2025-03-30 Thread Abigaba Abraham
Try installing Pillow if you didn't On Sunday, March 30, 2025 at 10:44:32 PM UTC+3 Szawunia wrote: > Hi everybody, > I have problem with my static files in my Django project, running local. > Actually Django-Oscar, but settings files is Django. There are not founded > (404 error). I have all m

Problem with static files inDjango-Oscar

2025-03-30 Thread Szawunia
Hi everybody, I have problem with my static files in my Django project, running local. Actually Django-Oscar, but settings files is Django. There are not founded (404 error). I have all my static files in my project directory (where 'manage.py' is). My settings: STATIC_URL = 'static/' STATIC_