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

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

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,

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

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/',

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,

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 > base_html template with

Re: Static file serve with prior authentication?

2009-02-25 Thread John Hensley
On Feb 23, 2009, at 5:20 PM, Graham Dumpleton wrote: > The approach for mod_python documented in that link, and equivalent > for mod_wsgi, are only good for HTTP Basic authentication, it is no > good if you want the page to be authenticated using HTML form/cookie > based authentication as Django

Re: Static file serve with prior authentication?

2009-02-23 Thread Katja Loeffler
> You don't really want use django.views.static.serve in the real world OK ;). > http://docs.djangoproject.com/en/dev/howto/apache-auth/ Thanks! I'll have a look. Katja --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Static file serve with prior authentication?

2009-02-23 Thread Andy Mckay
On 23-Feb-09, at 1:44 PM, Katja Loeffler wrote: > I have been looking for a solution to make a file download with prior > authentication ... > > But this is not really "protected" since they can make the link public > once they have it and everyone can download without prior login. > > I have

Re: static file problems (newbie)

2008-01-09 Thread [EMAIL PROTECTED]
Thanks, indeed i made a mistake in that part, i changed it to screen and now it works. this is really something i should keep in mind while migrating applications. thanks again, Richard On Jan 9, 4:54 pm, "Marty Alchin" <[EMAIL PROTECTED]> wrote: > On Jan 9, 2008 10:28 AM, [EMAIL PROTECTED]

Re: static file problems (newbie)

2008-01-09 Thread Marty Alchin
On Jan 9, 2008 10:28 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I can access it, also all the images can be viewed by going to the > url. > It only won't appear in the actual html files. > > > the link that i put in my index file is the following > > > > > media="print" > I have one

Re: static file problems (newbie)

2008-01-09 Thread [EMAIL PROTECTED]
Hello, I can access it, also all the images can be viewed by going to the url. It only won't appear in the actual html files. Richard On Jan 9, 3:29 pm, Thomas Guettler <[EMAIL PROTECTED]> wrote: > Hi, > > Can you accesshttp://127.0.0.1:8000/css/idap.css? > > Maybe you have a tag in you html?

Re: static file problems (newbie)

2008-01-09 Thread Thomas Guettler
Hi, Can you access http://127.0.0.1:8000/css/idap.css ? Maybe you have a tag in you html? Am Mittwoch, 9. Januar 2008 13:49 schrieb [EMAIL PROTECTED]: > Hello Django Users, > > I looked at the documentation about the static file serving but don't > seem to get it to work. > > the url pattern