I have Multiple apps, but every app has it's own template with it's own static files , they server one purpose with different kinds of user and uses. the apps are: 1. Portal 2. Portal Blog editor(Its like an admin panel for the writer with analytics and stuff) 3. Main Admin Panel(Not the django one) I am using django 2.2 since I am running Djongo. Please suggest me some solution on this problem along with how do i manage it's urls.
How to manage multiple templates with it's static files in multipl apps in django 2.2?
534 Views Asked by Bhavya Gaglani At
1
There are 1 best solutions below
Related Questions in DJANGO-TEMPLATES
- use dict from python in django html template and also in js
- django allauth settings.SOCIALACCOUNT_ENABLED overwritten?
- Django-Cross Model Query 3 Models
- How can I get a comma separated list with related posts from a many-to-many field?
- I am experiencing a 404 error in the console on my django project
- How to start a download and render a response without hitting disk?
- django add filters in template is not working expectedly
- Access to stye.css denied - Django Static files - Nginx - I can't make my project read staticfiles (style.css)
- How to get an object for editing transfer to a form?
- class Media in Django formsets
- Django. Correct way to get and pass complicated data to template
- (Django 5.03] problem with django.contrib.auth.views.LogoutView
- Why are my Django project JavaScript files not loading, while the CSS files load successfully when they are both placed within the same static folder?
- Navbar items are not aligning on right hand side
- Django Template render annotated data along with Model data in UI for Many to Many relationship objects
Related Questions in DJANGO-URLS
- Django Admin Panel and Sub URLs Returning 404 Error on Deployment
- Error fetching the entry page through Django url path
- Unable to see text in the dropdown list
- How to handle multiple URL patterns. Any pattern order leads to 404 for different pages
- How to solve type error in django? TypeError at /new/ HttpResponse() takes no arguments
- Can Django handling multiple id in one view?
- Will I need a consumers.py, asgi,py and routing.py using Tradier's websocket API?
- Undefined Movie Name and City Name in Seats HTML Template Despite Passing Through JavaScript and URL in Django Application
- Fetching one object using DRF retrieve viewset without pk or uuid
- Django logout view shows a blank page and does not log out a user
- How to translate static slug in Django
- Page not found (404). No Category matches the given query
- Problem finding the image path in Django in one of the apps
- how, to achieve a filtered content from Django backend to my webpage
- ImportError Django cannot import name 'SignupView'
Related Questions in DJANGO-STATICFILES
- Access to stye.css denied - Django Static files - Nginx - I can't make my project read staticfiles (style.css)
- Development Environment Django port 8000 to serve React (staticfiles)
- Django: The static tag not loading on extended html when linking an image but works for CSS style sheet?
- A navbar cant't recognize a static file in my Django project
- Django Static Files Documentation, not working, am I missing something?
- serving static files in django on pythonanywhere
- DEBUG=False is not showing static and media files in Django project on Cpanel
- Static file error on Django windows server
- Django-Webpack-Boilerplate: Images are not found
- Django : Static served using nginx couldn't work Error 404
- Django Rest deployment on CPanel
- in production, django {% static 'file/path' %} command looks for the file path on Herokuapp when it should be looking through Cloudinary
- Django 4.1 Static Files
- Django Elastic Beanstalk Static Configuration not working
- Django and staticfiles
Related Questions in DJANGO-APPS
- Django project deployment on Vercel got me an error
- Using pytest to test django packages
- Django Test: how to simulate LookupError for django_apps.get_model()
- PyLint Django: django.core.exceptions.ImproperlyConfigured: Requested setting LOGGING_CONFIG, but settings are not configured
- Proxy model edit/add missing on Foreign Key fields?
- Larger Django project with mulptiple levels of subfolders with 20 apps
- How can I access templates from an imported Django application?
- Django how to change CSS according the app you are in
- Dont know, why the my app url is ashowing as undefined, inside include function of project url
- Can I run a bot inside a Django project that will run independently of other Django apps?
- Error message for deploying Django app to Azure
- Can I give parameters to AppConfig.ready() of django?
- Can't satisfy Django configuration for AUTH_USER_MODEL setting
- linking apps in Django, which is better, urls.py or app.py?
- Problem with INSTALLED_APPS in django settings.py file
Related Questions in DJANGO-2.2
- In Django Debug request url shown as http instead of https
- (postgres) query on a table in cloned schema in postgres is taking more time than the original schema
- Django Change all other Boolean fields except one
- Django constraint that IS NULL conditions of two columns must match
- multiple forms in one step, Django Wizard form
- Prevent Double Click in JS for in browser game using Django 2.2
- Return keyword arguments with None values to the views in django 3.2
- Replace celery tasks in django with python async functions
- Where is ID saved in django ModelAdmin autocomplete_fields?
- Django ModuleNotFoundError: No module named 'crispy_bootstrap5'
- Django POST multipart/form-data unexpectedly parsing field as array
- Django exclude query, can i pass multiple parameters?
- UpdateView not filling datalists html input and other fields
- allauth urls are not accessible - 404 error
- AttributeError: 'ParsedRequirement' object has no attribute 'req' in PIP 21.1.1
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Django supports per-app templates and statics directories.
1/ In each app, create a templates/yourappname and a static/yourappname directory.
2/ make sure you have
"APP_DIRS": Truein yoursettings.TEMPLATES3/ make sure you have
'django.contrib.staticfiles.finders.AppDirectoriesFinder'in you settings.STATICFILES_FINDERS4/ Then in your code always refer to your templates and static with the matching appname prefix ie
appname/templatename.extandstatic/appname/filename.ext