Re: JavaScript src files not found.
They should be put in your "static" path. Regards Bjørn On 17 Dec., 15:53, Robert Steckroth wrote: > Hey coders, Where would stuff like .js src files go in a Django powered > Website? > ERROR --> 09:20:08.016: Network: > GEThttp://localhost:8000/users/PBUi/mouse.js[HTTP/1.0 404 NOT FOUND 30ms] > ERROR --> 09:20:07.823: Network: > GEThttp://localhost:8000/users/sylvester.js[HTTP/1.0 404 NOT FOUND 11ms] > > There is many of these files to include for a entire program included in my > home page. > This is in the mySite/templates/users directory in the index.html file. > What is my fundamental design flaw? > -- > *Bringing game to younix* > Bust0ut Entertainment --- > PureBreedDefense.com --> TheLinuxGame.com --> PBDefence.com > "Finding the exit without looking" -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: JavaScript src files not found.
2010/12/17 Robert Steckroth > Hey coders, Where would stuff like .js src files go in a Django powered > Website? > ERROR --> 09:20:08.016: Network: GET > http://localhost:8000/users/PBUi/mouse.js [HTTP/1.0 404 NOT FOUND 30ms] > ERROR --> 09:20:07.823: Network: GET > http://localhost:8000/users/sylvester.js [HTTP/1.0 404 NOT FOUND 11ms] > > There is many of these files to include for a entire program included in my > home page. > This is in the mySite/templates/users directory in the index.html file. > What is my fundamental design flaw? > if i understand you correctly: in settings.py theres is a lines # Absolute path to the directory that holds media. # Example: "/home/media/media.lawrence.com/" MEDIA_ROOT = /absolute/path # URL that handles the media served from MEDIA_ROOT. # Example: "http://media.lawrence.com"; MEDIA_URL = "/media/" **so in a template you need specify path to media like this: {{MEDIA_URL}}path/to/my/cript.js But keep in mind that this variable must be passed into template via context processor ("django.core.context_processors.media", ) or directly from view. As for regular design flow read django manual. There is to much to say in one letter. * Vovk Donets* python developer -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
JavaScript src files not found.
Hey coders, Where would stuff like .js src files go in a Django powered Website? ERROR --> 09:20:08.016: Network: GET http://localhost:8000/users/PBUi/mouse.js [HTTP/1.0 404 NOT FOUND 30ms] ERROR --> 09:20:07.823: Network: GET http://localhost:8000/users/sylvester.js [HTTP/1.0 404 NOT FOUND 11ms] There is many of these files to include for a entire program included in my home page. This is in the mySite/templates/users directory in the index.html file. What is my fundamental design flaw? -- *Bringing game to younix* Bust0ut Entertainment --- PureBreedDefense.com --> TheLinuxGame.com --> PBDefence.com "Finding the exit without looking" -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.