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
- How to translate this raw query to Django ORM
- How to retrieve an object or a particular field from context object in view?
- Display a specific template when Django raises an exception
- How to manage media files on Windows?
- How can i check if values of models are the same in django loop?
- get rows count from django_tables2
- Serving static files in django 1.8
- Using Django FormPreview the right way
- Is it possible to display a specific block from a template in django?
- How do I display a related object set in django?
- How to loop over datetime range in django templates
- How should I show results of BeautifulSoup parsing in Django?
- Create table with id dynamically by template in Django
- In Django template how to separate Date and time from DateTimeField?
- django-bootstrap3 fields width control
Related Questions in DJANGO-URLS
- Django urls.py not rendering correct template
- Having trouble using reverse()
- Is it possible to display a specific block from a template in django?
- How to get URL usage status in Django?
- DJango URL Reverse Error: argument to reversed() must be a sequence
- Django: urls with common prefix and {% url %} with param in view
- How to frame my url pattern in Django
- Django: Overwrite ROOT_URLCONF with request.urlconf in middleware
- How can I make Stackoverflow-style URLs in Django with a working reverse, that allow the slug to change?
- Django Rest Framework - how to get Http header information in urls.py
- difference between '^$' and '' in urls django
- django parameter gets none even on redirect with parameter
- Using Django URL's to send posted information to another page
- Django url that captures yyyy-mm-dd date
- NoReversMatch for url with parameter
Related Questions in DJANGO-STATICFILES
- django production deployment does not load static files
- Django: reference static file from js in static file directory
- Debug set on False and not load styles and pictures
- Django 1.8 serving static files during deployment
- Serving static files when in deployment mode with debug = false
- Django staticfiles not being updated in browser
- Django: static image file should be stored in git repository when using AWS cloudfront and S3?
- Django: The joined path is located outside of the base path component
- How do I serve media files in a local Django environment?
- Django Compressor not using STATICFILES_FINDER from settings
- django media_root not working
- strange django static file behaviour
- Django: specify file paths in a JavaScript file
- Django. Alternate between local & remote staticfiles
- Pythonanywhere 'staticfiles' is not a valid tag library: Template library staticfiles not found
Related Questions in DJANGO-APPS
- How to develop/include a Django custom reusable app in a new project? Are there some guidelines?
- Django site architecture
- Django app per websitemenu item?
- How to change "app name" in Django admin?
- Better Alternative to django.contrib.comments
- django - ckeditor bug renders text/string in raw html format
- Disadvantages of using multiple apps django
- proper naming convention in Django
- Can I use the django admin as an app?
- python path for setting Django app
- django-paypal: Handling flow before leaving to paypal payment
- Django-registration & Django-Socialauth
- django-tagging only show tags from filtered items
- How to create a django application which requires a specific module to run?
- Django collectstatic command is not able to compile animate.css
Related Questions in DJANGO-2.2
- How to pass multi optional URL parameters in django?
- Reverse for 'surveydetails' not found. 'surveydetails' is not a valid view function or pattern name
- Reverse for 'user_edit' not found. 'user_edit' is not a valid view function or pattern name
- Django Concat cannot be used in AddConstraint
- Why Django Rest Framework - Serializer validation doesn't work
- Is there an easy way to implement DateTimePicker in Django Crispy forms?
- Django-parler unique_together constraint between translated and normal field
- Django many to many relation, include all IDs in queryset in both directions
- AttributeError: 'ParsedRequirement' object has no attribute 'req' in PIP 21.1.1
- allauth urls are not accessible - 404 error
- Django Model Field for a Secure String
- Django Change all other Boolean fields except one
- Django unittest handle PermissionDenied
- Django 2.0 to 2.2 upgrade centos7
- template tag 'url' is not working if using outer javascript
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 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