Re: Error loading static file from a NAS (CIFS mounted) Not 404...

2023-02-27 Thread Hua Liang
Okay I think I know the problem. Apache2 has a bug with CIFS, set EnableMMAP Off in config will solve this. On Monday, February 27, 2023 at 6:29:12 AM UTC-8 Hua Liang wrote: > Hello, > > I have a django site and I have two storages serving static files. > One is a hard drive attached to the

Error loading static file from a NAS (CIFS mounted) Not 404...

2023-02-27 Thread Hua Liang
Hello, I have a django site and I have two storages serving static files. One is a hard drive attached to the server and the other is a NAS share. Both are mounted and I can view the files in Ubuntu without any problems. Both are linked to Django static folder. The problem is that when I tried

Re: STATIC FILE

2022-11-09 Thread Chukwudi Onwusa
I think you should make your work more organized, iff I truly understand you, by putting your static directory inside your working directory. On Thu, Nov 10, 2022, 04:25 Mh Raffi wrote: > Media url in settings I have. > > On Thu, Nov 10, 2022, 8:50 AM ritik sahoo wrote: > >> You must import

Re: STATIC FILE

2022-11-09 Thread Mh Raffi
Media url in settings I have. On Thu, Nov 10, 2022, 8:50 AM ritik sahoo wrote: > You must import media url > > On Wed, 9 Nov, 2022, 8:58 pm Mh Raffi, wrote: > >> Hi, >> I run cmd to collect static files but files are stored in c:\ but not in >> the actual project folder. >> My project folder

Re: STATIC FILE

2022-11-09 Thread Mh Raffi
I have that configuration setup. Images are not loading and collect static is collecting in c drive but my project is in desktop. On Thu, Nov 10, 2022, 8:50 AM ritik sahoo wrote: > You must import media url > > On Wed, 9 Nov, 2022, 8:58 pm Mh Raffi, wrote: > >> Hi, >> I run cmd to collect

Re: STATIC FILE

2022-11-09 Thread ritik sahoo
You must import media url On Wed, 9 Nov, 2022, 8:58 pm Mh Raffi, wrote: > Hi, > I run cmd to collect static files but files are stored in c:\ but not in > the actual project folder. > My project folder is on the desktop. > while running the command am into that root folder of the project. > and

Re: STATIC FILE

2022-11-09 Thread Lakshyaraj Dash
Set the STATIC_ROOT conf as follows import os # ignore if once imported STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles') Also see of you've allowed that particular host. Thanks and Regards Lakshyaraj Dash On Wed, Nov 9, 2022, 20:57 Mh Raffi wrote: > Hi, > I run cmd to collect static files

STATIC FILE

2022-11-09 Thread Mh Raffi
Hi, I run cmd to collect static files but files are stored in c:\ but not in the actual project folder. My project folder is on the desktop. while running the command am into that root folder of the project. and i have images that are also not stored. I have an app in railway host and debug in a

Re: Static file - java script - not found

2022-09-07 Thread Lakshyaraj Dash
His configurations are correct os module is not compulsory... because the BASE_DIR is already configured... On Thu, Sep 8, 2022, 04:51 Ezekiel Obiajulu wrote: > There is an error in staticfiles_dirs > Message me on WhatsApp for further corrections ... > Use that code > STATIC_URL = 'static/' >

Re: Static file - java script - not found

2022-09-07 Thread Ezekiel Obiajulu
There is an error in staticfiles_dirs Message me on WhatsApp for further corrections ... Use that code STATIC_URL = 'static/' STATICFILES_DIRS = [os.path.join(BASE_DIR, "static")] remember to: import os at the top +2349033768504 (WhatsApp only) On Wednesday, September 7, 2022 at 10:19:38 PM

Re: Static file - java script - not found

2022-09-07 Thread Ezekiel Obiajulu
Use this code [image: Annotation 2022-09-07 231453.png] remember to: import os at the top On Wednesday, September 7, 2022 at 10:19:38 PM UTC+1 bodyabd...@gmail.com wrote: > Dear All; > I've problem in static folder , the file js not found > > -- You received this message because you are

Re: Static file - java script - not found

2022-09-07 Thread Lakshyaraj Dash
Listen you need to configure your sales app inside the installed apps like 'sales.apps.SalesConfig' and remove the line 'BASE_DIR / sales / static' from the STATIFILES_DIRS. Thanks and regards Lakshyaraj Dash On Thu, Sep 8, 2022, 02:49 bodyabd...@gmail.com wrote: > Dear All; > I've problem in

Static file - java script - not found

2022-09-07 Thread bodyabd...@gmail.com
Dear All; I've problem in static folder , the file js not found -- 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

Re: static file serve nothing is load in deployment

2022-06-15 Thread Antonis Christofides
If you are running the server with "manage.py runserver", STATIC_ROOT is irrelevant. You should put the "polls" directory in "polls/static", i.e. e.g. "polls/static/polls/style.css"; this is relative to the folder where "manage.py" is. On 15/06/2022 13.54, luca72.b...@gmail.com wrote: no i'm

Re: static file serve nothing is load in deployment

2022-06-15 Thread luca72.b...@gmail.com
no i'm not in production i'm running with runserver Il giorno mercoledì 15 giugno 2022 alle 12:45:54 UTC+2 Antonis Christofides ha scritto: > Is this in production? Are you using apache or something? if yes, please > take a look at >

Re: static file serve nothing is load in deployment

2022-06-15 Thread Antonis Christofides
Is this in production? Are you using apache or something? if yes, please take a look at https://djangodeployment.readthedocs.io/en/latest/_images/how-static-files-work-apache.png. Otherwise, please explain in more detail what your deployment environment looks like. On 15/06/2022 13.08,

static file serve nothing is load in deployment

2022-06-15 Thread luca72.b...@gmail.com
Hello i have this configuration in settings.py STATIC_URL = '/static_files/' STATIC_ROOT = 'D:/prova_nuovo_sito/static_files' INSTALLED_APPS = [ 'polls.apps.PollsConfig', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions',

Re: I have learn the tutorial 6 static file for html & css. However the web-site fail to display the intended file. Why & how to fixed it!

2021-01-17 Thread Prashanjeet Halder
There are many things that might be wrong in this situation. 1) Check the Urls.py file. 2) Check your settings.py file for the correct static URL & allowed hosts 3) Check for proper paths for every static file Thanks, Prashanjeet Haldar On Sunday, January 17, 2021 at 10:14:12 PM UTC+5:30 Ka

Re: I have learn the tutorial 6 static file for html & css. However the web-site fail to display the intended file. Why & how to fixed it!

2021-01-17 Thread Kasper Laudrup
Hi Loh, Revisit part one of the tutorial again: https://docs.djangoproject.com/en/3.1/intro/tutorial01/#write-your-first-view The "Page not found?" box will tell you what is wrong, but it might help you to read the rest again for context. Good luck and kind regards, Kasper Laudrup On

Re: Managing links on static files from a static file

2019-10-13 Thread Михаил Брунман
Добрый день. Сделал столбец продуктов и групп репортеров и партнеров при запросе. Также сделал, чтобы изначально в пивот выводилась не какая-то ересь. Плюс сразу создаются все фильтры. Также теперь есть одна кнопка получения данных, которая может исчезнуть (если данные получены), а также меняется

Re: Managing links on static files from a static file

2019-10-12 Thread Михаил Брунман
I've found the solution (if anyone ever will be in need). There are 2 situations: 1. Development. For development this problem can be solved using static function. Import it in your app's urls.py: from django.conf.urls.static import static Then use it there after the urlpatterns list: if

Managing links on static files from a static file

2019-09-08 Thread Михаил Брунман
Good daytime. I've spent some time trying to find a solution to my problem, but I still can't. Here is my problem. One of my html templates has a link on a javascript file, looking similar to this: The page is returned, when asking the next url: http://127.0.0.1:8000/app_name/page_name/ The

Re: Collectstable displays 0 static file copied issue

2019-06-01 Thread Chetan Ganji
er alignment. > > I have run python3 manage.py collectstatic(since i am using python3) got > the following output - > > "0 static files copied to > '/home/username/project/file:/home/username/project/app/templates/static', > 120 unmodified." -- Not sure what this mea

Collectstable displays 0 static file copied issue

2019-06-01 Thread Ankhi Roy
collectstatic(since i am using python3) got the following output - "0 static files copied to '/home/username/project/file:/home/username/project/app/templates/static', 120 unmodified." -- Not sure what this means, does it means Django is still unable to fetch the CSS static file? I am guessing

Re: why is the static file not loading.i need solution

2018-10-20 Thread Gabriel Stone
Also in your href try using a forward slash not a back slash to make references On Sat, 20 Oct 2018 at 5:45 PM, Siddharth Tamang < tamangsiddhart...@gmail.com> wrote: > Have you defined your static files entry in settings.py? > > On Sat, Oct 20, 2018 at 9:05 PM Obodoma Uzondu Vincent < >

Re: why is the static file not loading.i need solution

2018-10-20 Thread Siddharth Tamang
Have you defined your static files entry in settings.py? On Sat, Oct 20, 2018 at 9:05 PM Obodoma Uzondu Vincent < uobodoma...@gmail.com> wrote: > THIS IS THE HTML FILE > > login > https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css; >

why is the static file not loading.i need solution

2018-10-20 Thread Obodoma Uzondu Vincent
THIS IS THE HTML FILE login https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css; integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous"> {% load static %} welcome Welcome to my page!

Re: How to serve this static file

2018-08-13 Thread Mikhailo Keda
Check official documentation - https://docs.djangoproject.com/en/2.1/howto/static-files/ -- 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

How to serve this static file

2018-08-11 Thread Sandy Leon
Hello everyone, I recently completed the Django first app tutorial and am decently happy with what I have. I would like to continue adding to the site by making small improvements here and there. Anyways I found a cool cube clock on freefrontend.com but I can't seem to figure out how to add it

Re: JS static file is not accessible in Django

2017-01-16 Thread anjalimk68
Hi Hashmi, I tried debugger tools which you mentioned. under js of console nothing is showing up it's empty. Please let me know how we can resolve this. On Wednesday, January 11, 2017 at 1:30:32 PM UTC+5:30, M Hashmi wrote: > RIght click on the page when local server is running and click

Re: JS static file is not accessible in Django

2017-01-10 Thread M Hashmi
RIght click on the page when local server is running and click inspect elements. Check if there is any error in console section. If JS is showing file then it means the issue is with the function not with loading file. Send snapshot for further help. On Tue, Jan 10, 2017 at 10:19 PM,

JS static file is not accessible in Django

2017-01-10 Thread anjalimk68
Ihave an application for that I am trying to use multifilter js script. I am able to load the file through my application. Ex: /static/js/multifilter.js if i open this link it will print my js file on html without any issues, But in the application js functionality is not working. Can anyone

Re: How to serve a static file with django?

2015-12-24 Thread cquptzzq
/static/my_appecho > hello > my_app/static/my_app/hello.htmlpython manage.py runserverOther > terminal:curl 127.0.0.1:8000/my_app/static/my_app/hello.html > <http://127.0.0.1:8000/my_app/static/my_app/hello.html>gives:Page not found > (404)So, I'm curious.How to serve

Re: How to serve a static file with django?

2015-12-23 Thread Jani Tiainen
So, I'm curious. How to serve a static file with django? I sense that This URL is leaving out a step or maybe I read it wrong: https://docs.djangoproject.com/en/1.9/howto/static-files/ ?? I am running this django: >>> import django >>> print(django.get_version()) 1.9 >>>

Re: How to serve a static file with django?

2015-12-23 Thread Vijay Khemlani
ntrib.contenttypes', > 'django.contrib.sessions','django.contrib.messages', > 'django.contrib.staticfiles',]So, I see staticfiles in there.cd > mysitepython manage.py startapp my_appmkdir -p my_app/static/my_appecho > hello > my_app/static/my_app/hello.htmlpython manage.py ru

How to serve a static file with django?

2015-12-23 Thread Dan Bikle
app/hello.htmlpython manage.py runserverOther terminal:curl 127.0.0.1:8000/my_app/static/my_app/hello.htmlgives:Page not found (404)So, I'm curious.How to serve a static file with django?I sense that This URL is leaving out a step or maybe I read it wrong:https://docs.djangoproject.com/en/1.9/howto/static-fi

Re: solution to static file loading issue on 1.8

2015-10-23 Thread Tim Graham
Did you try reading the link I provided? If so, what is unclear? On Friday, October 23, 2015 at 1:36:43 PM UTC-4, Becka R. wrote: > > Hi, > > I'd love to understand why, exactly, it did make a difference. All I know > for sure is that after four hours of trying various possibilities, this is

Re: solution to static file loading issue on 1.8

2015-10-23 Thread Becka R.
Hi, I'd love to understand why, exactly, it did make a difference. All I know for sure is that after four hours of trying various possibilities, this is what removed the error. Thanks! On Friday, October 23, 2015 at 10:25:23 AM UTC-7, Tim Graham wrote: > > Hi Becka, > > You've provided

Re: solution to static file loading issue on 1.8

2015-10-23 Thread Tim Graham
Hi Becka, You've provided the default value for STATICFILES_FINDERS so putting that in your settings shouldn't make a difference. An example of STATICFILES_DIRS is given at: https://docs.djangoproject.com/en/1.8/howto/static-files/ If you have a suggestion about how to improve the docs that

solution to static file loading issue on 1.8

2015-10-23 Thread Becka R.
Hi, I just spent hours on this problem, and (at last) stumbled into the Stack Overflow answer, and wanted to preserve this for posterity. I'm using Django 1.8, and wasn't able to get my static files to load on my local server. I finally found the Stack Overflow answe

Re: Get unversioned static file url while using CachedStaticFilesStorage

2015-10-12 Thread Tim Graham
> > Hello all, > > I want to retrieve static file url without version number for a specific > static file url while using staticfiles app. > > Is there any way to achieve this with {% static %} tag? > -- You received this message because you are subscribed to the Google

Get unversioned static file url while using CachedStaticFilesStorage

2015-10-11 Thread Dheerendra Rathor
Hello all, I want to retrieve static file url without version number for a specific static file url while using staticfiles app. Is there any way to achieve this with {% static %} tag? -- You received this message because you are subscribed to the Google Groups "Django users&q

Re: Load a static file with a variable name

2015-10-07 Thread Simon Charette
You'll want to use Because François' suggestion will break if you use a static file storage that doesn't allow missing files reference such as the ManifestStaticFilesStorage <https://docs.djangoproject.com/en/1.8/ref/contrib/staticfiles/#manifeststaticfilesstorage> . Simon Le m

Re: Load a static file with a variable name

2015-10-07 Thread I . Dié
Thank you very much monsieur François Le mardi 6 octobre 2015 20:40:01 UTC+2, François Schiettecatte a écrit : > > The '+' is an error, the line look more like this: > > /> > > On Tue, Oct 6, 2015 at 2:33 PM, I. Dié > wrote: > >> I tried in your way to concatenate, I

Re: Load a static file with a variable name

2015-10-06 Thread François Schiettecatte
The '+' is an error, the line look more like this: On Tue, Oct 6, 2015 at 2:33 PM, I. Dié wrote: > I tried in your way to concatenate, I don't get any exception, but the > image image does'nt want to display. The plage only throw the "alt" value. > Even for this line

Re: Load a static file with a variable name

2015-10-06 Thread I . Dié
I tried in your way to concatenate, I don't get any exception, but the image image does'nt want to display. The plage only throw the "alt" value. Even for this line of code it's thing. Le mardi 6 octobre 2015 19:51:04 UTC+2, Shawn Milochik a écrit : > > Try this: > > pet.name }} /> > >

Re: Load a static file with a variable name

2015-10-06 Thread Shawn Milochik
Try this: You're embedding {{pet_name}} in a string. If this was a regular Python statement, it would be like writing "Hello, {0}" and not having a format() at the end. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

Load a static file with a variable name

2015-10-06 Thread I . Dié
Hi everybody, I want to load a image with a variable name in detail.html like this: {% load staticfiles %} the image won't load. But when I try this way, it's work perfectly: {% load staticfiles %} Here is my question How to load a static file with a variable name? Ps: pet.name value

Re: can't find static file

2015-09-30 Thread James Schneider
Also, your error indicates that your URL request is using the 'image' directory, not 'images', which doesn't match your directory structure. -James On Sep 30, 2015 2:15 PM, "José Javier Castro Matamoros" wrote: > Hi Gary. Did you read the section *Serving static files during

Re: can't find static file

2015-09-30 Thread José Javier Castro Matamoros
Hi Gary. Did you read the section *Serving static files during development*. If you don't maybe this happen because you didn't add this code in the project/urls.py. rom django.conf import settingsfrom django.conf.urls.static import static urlpatterns = patterns('', # ... the rest of your

can't find static file

2015-09-30 Thread Gary Roach
Hi all; Stats: Debian Linux 8 (jessie) python = 2.7.9 Django 1.7 (To match tutorial) sqlite data base Using virtualenv I'm working my way through the Tango With Rango tutorial and have hit a snag. I added the static/images directory and put in a jpg photo for data. The system can't find the

Re: Question about static file serving strategy with S3 and Cloudfront

2014-07-03 Thread Cal Leeming [Simplicity Media Ltd]
lias {{ web_static_dir }}; > expires 1y; > add_header Cache-Control > "no-transform,public,max-age=31557600,s-maxage=31557600"; > gzip on; > } > > So a static file will be cached "forever" unless we do a release, at which > point

Re: Question about static file serving strategy with S3 and Cloudfront

2014-07-03 Thread Scott Anderson
"no-transform,public,max-age=31557600,s-maxage=31557600"; gzip on; } So a static file will be cached "forever" unless we do a release, at which point the virtual directory changes to the new version and clients start requesting (to them) a completely new static file.

Re: Question about static file serving strategy with S3 and Cloudfront

2014-07-02 Thread Cal Leeming [Simplicity Media Ltd]
You also have to consider client side caching, despite if you use the correct headers or not. One option is to use a cache buster using a value which changes on each release, but I'd advise against using random() cache buster as your caching efficiency will be impacted.

Question about static file serving strategy with S3 and Cloudfront

2014-07-02 Thread Chen Xu
Hi Everyone, I am currently using the following strategy to serve my static files, basically I run collectstatic to copy all my files to my static files directory, and then move it to s3, and cloudfront will pick it up from there. However, I wonder if I set the cache period to be 1 day in my

Re: CachedStaticFilesStorage with database cache backend - static file not found (404)

2013-06-24 Thread luke lukes
n collectstatic? > - does the serving of other static files (without hash, for example > "css/my_style.css") work without errors (aka: is static-file serving > in generall ok?) > > > -- > Denis > -- You received this message because you are subscribed to the

Re: CachedStaticFilesStorage with database cache backend - static file not found (404)

2013-06-22 Thread Denis Cornehl
- which errors occur on collectstatic? - does the serving of other static files (without hash, for example "css/my_style.css") work without errors (aka: is static-file serving in generall ok?) -- Denis -- You received this message because you are subscribed to the Google Gro

CachedStaticFilesStorage with database cache backend - static file not found (404)

2013-06-21 Thread luke lukes
Hi everyone. I've enabled CachedStaticFileStorage . I'm using db as cache backend. I followed all the things said in the django docs, now my settings looks like this: # cache table settings

Re: static file rendering help

2013-04-05 Thread Fatih Tiryakioglu
I tried both of them, but it seems it isn't the problem.. -- 5 Nisan 2013 Cuma 23:14:20 UTC+3 tarihinde jondbaker yazdı: > > From a quick glance it appears that the file source you've included in the > html is not specifying a file extension. > > Try: >

Re: static file rendering help

2013-04-05 Thread Jonathan Baker
>From a quick glance it appears that the file source you've included in the html is not specifying a file extension. Try: ...instead of... On Fri, Apr 5, 2013 at 1:43 PM, Fatih Tiryakioglu wrote: > Thank you. > > The shortcut of the picture: >

Re: static file rendering help

2013-04-05 Thread Fatih Tiryakioglu
Thank you. The shortcut of the picture: /home/mehmet/internet_projeleri/site4ust/unnamed/60830071673353216.jpg In the template I have written the line below to render a jpg file. And in the settings: MEDIA_ROOT = '/home/mehmet/internet_projeleri/site4ust/unnamed' MEDIA_URL = '/unnamed/'

Re: static file rendering help

2013-04-05 Thread Navid Shaikh
On Friday, April 5, 2013 11:16:00 AM UTC+5:30, Fatih Tiryakioglu wrote: > > Hi all, > > I want to render back "user uploaded images" via template. I pass the > shortcuts to the template, but template can't show it: only small image > symbol. How can i show it up. I tryed some 'MEDIA_ROOT',

Re: static file rendering help

2013-04-05 Thread Rafael E. Ferrero
i just use de url template tag. 2013/4/5 Fatih Tiryakioglu > Hi all, > > I want to render back "user uploaded images" via template. I pass the > shortcuts to the template, but template can't show it: only small image > symbol. How can i show it up. I tryed some

static file rendering help

2013-04-04 Thread Fatih Tiryakioglu
Hi all, I want to render back "user uploaded images" via template. I pass the shortcuts to the template, but template can't show it: only small image symbol. How can i show it up. I tryed some 'MEDIA_ROOT', 'MEDIA_URL' settings, and read some info, but i couldn't figure out.. I appreciate

Re: Can't set static file directory.

2013-01-08 Thread jianhui chen
Hi, I am not to interrupt your question, actually I have the same problems as you. It seems that Django comers suffer this problem so much. I use Manager Static File as a guide, but still has problem. 1, Put your static files somewhere that staticfiles will find them I set following

Re: Can't set static file directory.

2013-01-08 Thread Agnese Camellini
I've foud a tutorial , finally. Interesting, but it speaks about an older version of Django. Thank you all for the answers. 2013/1/8 Jonathan > Assuming that you have settings.STATIC_ROOT configured, you can use the >

Re: Can't set static file directory.

2013-01-08 Thread Jonathan
Assuming that you have settings.STATIC_ROOT configured, you can use the following snippet to handle URL routing for static files with the dev server: # urls.py if settings.DEBUG: urlpatterns += patterns('', (r'^static/(?P.*)$', 'django.views.static.serve', {

Re: Can't set static file directory.

2013-01-08 Thread Agnese Camellini
I'm not using apache now, i'm just using the development server into django. Why is it so difficult to serve static files? joy 2013/1/8 Mike Dewhirst > On 8/01/2013 10:03pm, joy wrote: > >> I have the same problem, the tutorial speaks about a list of things to do: >> >>

Re: Can't set static file directory.

2013-01-08 Thread Mike Dewhirst
On 8/01/2013 10:03pm, joy wrote: I have the same problem, the tutorial speaks about a list of things to do: * Push your code up to the deployment server. * On the server, run collectstatic

Re: Can't set static file directory.

2013-01-08 Thread joy
I have the same problem, the tutorial speaks about a list of things to do: - Push your code up to the deployment server. - On the server, run collectstaticto copy all the static files into

Re: Can't set static file directory.

2013-01-06 Thread Pedro J. Aramburu
That is in a development server? Why not use ./manage.py runserver? If not you can point apache to the wsgi file and use django itself to serve the static files modifying a little bit urls.py. But it's not recommended for production use.

Re: Can't set static file directory.

2013-01-06 Thread Pedro J. Aramburu
Because it's configured that way in apache, not in django, and it doesn't exist ergo the error message. El sábado, 5 de enero de 2013 15:38:32 UTC-3, Mārtiņš Jakubovičs escribió: > > Hello. > > I try a lot of things and can't understand, why not working STATIC_ROOT > and MEDIA_ROOT in

Re: Can't set static file directory.

2013-01-06 Thread Abraham Yusuf
On Sunday 06 January 2013 11:49:46 AM django-users@googlegroups.com wrote: When i set in STATIC_ROOT = '/home/domain/www/my_proj/htdocs/static' In apache error log i got: File does not exist: /home/domain/www/my_proj/my_proj/static I don't get, why django don't want to take new

Can't set static file directory.

2013-01-05 Thread Mārtiņš Jakubovičs
Hello. I try a lot of things and can't understand, why not working STATIC_ROOT and MEDIA_ROOT in settings.py. I want, that all my media and static folders is in different place that python files, so I set media, static and templates to different place. Templates TEMPLATE_DIRS works well, bet

Re: Static File - help, for a question

2012-07-12 Thread Dott. Tegagni Alessandro
Ok, but Static_root in settings.py is empty, so i import static_url or staticfiles_dirs ? In static_url there is define '/static/' In staticfiles_dirs are define: ( '/home/alessandro/Scrivania/progetto/media/photos/custodia/', '/home/alessandro/Scrivania/progetto/media/definitiva/',

Static File - help, for a question

2012-07-11 Thread Dott. Tegagni Alessandro
Hi! I do see the static files (images and pdf), I added STATIC_DIRS, the directories when I upload that files: STATICFILES_DIRS = ( '/home/alessandro/Scrivania/progetto/media/photos/custodia/', '/home/alessandro/Scrivania/progetto/media/definitiva/',

Re: static file problem with modwsgi+ apache2 with django1.3

2011-12-10 Thread Jisson Varghese
@ Ramiro Morales Thank you for your response, *edit the configuration file as you suggested ,But still am facing the problem.* I have one doubt about the configuration I used collectstatic command for static files, STATIC_ROOT = '/home/jisson/Desktop/testcloud.aws/DjangoApis/teststaticfiles/'

Re: static file problem with modwsgi+ apache2 with django1.3

2011-12-10 Thread Ramiro Morales
On Sat, Dec 10, 2011 at 7:01 AM, Jiss wrote: > Settings.py > STATIC_ROOT = '/home/jisson/Desktop/testcloud.aws/DjangoApis/ > teststaticfiles/' This is wrong (although it shouldn' t affect your apache+mod_wsgi deployment), per the tree structure you posted earlier,

static file problem with modwsgi+ apache2 with django1.3

2011-12-10 Thread Jiss
Hi all, I am new to django and web development. I am facing a problem with static files(Django1.3) when tried to deploy it in my local apache server(apache2+mod_wsgi),the problem only for the static contents other parts ok[its worked in the devlopment server]. My project now in a folder

Re: Weird situation about static file

2011-10-27 Thread Nan
You may need to run manage.py collectstatic again, unless you used collectstatic -l when you first collected your static files. On Oct 26, 12:22 pm, Tsung-Hsien wrote: > I just change some style of css, but after runserver, the css is > nothing change. > I not only

Weird situation about static file

2011-10-26 Thread Tsung-Hsien
I just change some style of css, but after runserver, the css is nothing change. I not only deleted the image file in the static folder, but deleted whole static folder and the website still show the image and css. only use in localhost, even doesn't deploy to server yet. I don't know why that

Re: Static file problem using the development server

2011-08-09 Thread Daniel Roseman
On Tuesday, 9 August 2011 09:48:22 UTC+1, Rodney Topor wrote: > > Great. Thank you. I missed one, and this somehow affected others. > (Must try to understand what RequestContext really does one day.) > > RT It just runs the context processors, which add various things to the context -

Re: Static file problem using the development server

2011-08-09 Thread Rodney Topor
Great. Thank you. I missed one, and this somehow affected others. (Must try to understand what RequestContext really does one day.) RT -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Static file problem using the development server

2011-08-09 Thread Daniel Roseman
On Tuesday, 9 August 2011 08:24:20 UTC+1, Rodney Topor wrote: > > I tried using a style sheet served as a static file with the tutorial > project. In settings.py, I defined STATIC_URL = /static/ and > STATICFILES_DIRS = ('/path/to/project/static/',). Then I defined a > bas

Static file problem using the development server

2011-08-09 Thread Rodney Topor
I tried using a style sheet served as a static file with the tutorial project. In settings.py, I defined STATIC_URL = /static/ and STATICFILES_DIRS = ('/path/to/project/static/',). Then I defined a base_html template with a line in the HEAD of the form and put style.css in directory /static

Re: Serving static file on Windows

2011-05-31 Thread Alagu Madhu
Hi, I use Django 1.3. sample/ static/ js/jquery.1.6.1.min.js css/ settings.py APP_DIR = os.path.abspath(os.path.dirname(__file__)) STATIC_ROOT = os.path.join(APP_DIR, 'static/') STATIC_URL = 'http://192.168.1.141:44/static/'

Re: Serving static file on Windows

2011-05-31 Thread Alagu Madhu
Hi, I use Django 1.3. sample/ static/ js/jquery.1.6.1.min.js css/ settings.py APP_DIR = os.path.abspath(os.path.dirname(__file__)) STATIC_ROOT = os.path.join(APP_DIR, 'static/') STATIC_URL = 'http://192.168.1.141:44/static/'

Re: Serving static file on Windows

2011-05-31 Thread Praveen Krishna R
*Pasting one of my earlier replies to the same question* *** * *Please check django official docs to find out how static files are served on production and development server. in the dev server include a similiar snippet into your projects urls.py, urlpatterns: (r'^site_media/(?P.*)$',

Re: Serving static file on Windows

2011-05-30 Thread Alagu Madhu
urls.py from django.conf.urls.defaults import patterns, include, url urlpatterns = patterns('', (r'^$', 'hydra.views.index'), ) On May 30, 12:28 pm, Praveen Krishna R wrote: > *could you dump your urls.py ? > * > > > > > > > > > > On Mon, May 30, 2011

Re: Serving static file on Windows

2011-05-30 Thread Praveen Krishna R
*could you dump your urls.py ? * On Mon, May 30, 2011 at 12:19 PM, Alagu Madhu wrote: > Hi, > > sample/ > static/ >js/jquery.1.6.1.min.js > css/ > > settings.py > > APP_DIR = os.path.abspath(os.path.dirname(__file__)) >

Re: Serving static file on Windows

2011-05-30 Thread Alagu Madhu
Hi, sample/ static/ js/jquery.1.6.1.min.js css/ settings.py APP_DIR = os.path.abspath(os.path.dirname(__file__)) STATIC_ROOT = os.path.join(APP_DIR, 'static/') STATIC_URL = '/static/' INSTALLED_APPS = ( 'django.contrib.auth',

Re: Serving static file on Windows

2011-05-24 Thread shofty
ignore that last comment, im clearly behind a version! not sure why you're needing to static.serve the static files, if you're on django 1.3 it does that bit for you. On May 24, 9:22 am, Alagu Madhu wrote: > Hi, > > sample/ >           media/ >                    

Re: Serving static file on Windows

2011-05-24 Thread shofty
I thought we were still on jquery 1.5.1? Matt On May 24, 9:22 am, Alagu Madhu wrote: > Hi, > > sample/ >           media/ >                     js/jquery.1.6.1.min.js >                  css/ >            static/ >                     js/jquery.1.6.1.min.js >                  

Serving static file on Windows

2011-05-24 Thread Alagu Madhu
Hi, sample/ media/ js/jquery.1.6.1.min.js css/ static/ js/jquery.1.6.1.min.js css/ settings.py import os PROJECT_DIR = os.path.abspath(os.path.dirname(__file__)) MEDIA_ROOT =

Override a static file.

2011-04-28 Thread Fabian Ezequiel Gallina
Hey folks, I'm wondering if there is any preferred way to override staticfiles. The use case is that I modified some grapelli static file and I would like my version of it to be the final one after collectstatic is run. Regards, -- Fabián E. Gallina http://www.anue.biz -- You received

Re: Apache2 with static file

2011-04-05 Thread Steve
using mod_wsgi with Apache? On Apr 5, 8:33 am, yongzhen zhang <4...@live.cn> wrote: > Hi, > i have one problem with my apache2 work with static file. > In apache2/sites-available file: > >         ServerNamewww.imaboy.cn >         ServerAlias shop.imaboy.cn >        A

Re: Apache2 with static file

2011-04-05 Thread Andres Lucena
On Tue, Apr 5, 2011 at 9:33 AM, yongzhen zhang <4...@live.cn> wrote: > Hi, > i have one problem with my apache2 work with static file. > In apache2/sites-available file: > >        ServerName www.imaboy.cn >        ServerAlias shop.imaboy.cn >       Alias /static /

Apache2 with static file

2011-04-05 Thread yongzhen zhang
Hi, i have one problem with my apache2 work with static file. In apache2/sites-available file: ServerName www.imaboy.cn ServerAlias shop.imaboy.cn Alias /static /home/yongzhen/workspace/www/iStore/static I want use apache to route to my static file. It works somehow, like

Re: Opinions Sought on When To/Not To Use Django Static File Settings

2011-01-30 Thread Russell Keith-Magee
On Mon, Jan 31, 2011 at 12:59 AM, octopusgrabbus wrote: > I have written a web application in Django. At most, there will never > be more than five users logged in, if that. I chose this particular > application for Django implementation deliberately due to low use and

Opinions Sought on When To/Not To Use Django Static File Settings

2011-01-30 Thread octopusgrabbus
I have written a web application in Django. At most, there will never be more than five users logged in, if that. I chose this particular application for Django implementation deliberately due to low use and because it was a first-time application. The application sits behind a firewall, and

  1   2   >