Re: Multiple app css,html, javascript,img

2017-02-17 Thread ludovic coues
You should use staticfiles to include your css, js and image in your page. You first need to load the module in your template, then you can use the static tag {% load staticfiles %} While you are in dev, static will look into each of your app's static directory for the path you passed as

Re: Multiple app css,html, javascript,img

2017-02-17 Thread ludovic coues
Here is an exemple, slightly simplified from one of my project Assuming a "generic" app, generic/templates/base.html would be something like that {% load staticfiles %} {% block title %}myfb{% endblock %} {% block content %}{% endblock %} with style.css in generic/static/css/style.css and

Re: Multiple app css,html, javascript,img

2017-02-17 Thread Kazi Atik
what i have to do when i have multiple apps On Friday, February 17, 2017 at 1:28:29 PM UTC+5:30, Jani Tiainen wrote: > > Hi, > > You need to put static files under static directory within app. Now you > have static resources at your app root. So layout should be: > > users/ > static/ >

Re: Multiple app css,html, javascript,img

2017-02-17 Thread ludovic coues
I second the need to put js and css files under a static directory. When going to production, you'll need to look at the management command about static files. Also, don't put html files outside templates directory. And unless you have a good reason not to, put the html files in a subdirectory of

Re: Multiple app css,html, javascript,img

2017-02-16 Thread Jani Tiainen
Hi, You need to put static files under static directory within app. Now you have static resources at your app root. So layout should be: users/ static/ css/ style.css On 17.02.2017 08:15, Kazi Atik wrote: Hi Everyone, I am having multiple app in my project so i

Multiple app css,html, javascript,img

2017-02-16 Thread Kazi Atik
Hi Everyone, I am having multiple app in my project so i want to make globally these css, js,img folder because every time making css,js,img folder very difficult and slowing my development of my project please give me solution myfb users/ __init__.py models.py