django-apps Questions
23
Solved
Let's say I have my pizza application with Topping and Pizza classes and they show in Django Admin like this:
PizzaApp
-
Toppings >>>>>>>>>> Add / Change
Pizzas >&...
Giveaway asked 29/12, 2008 at 17:25
8
Solved
What is the procedure for completely uninstalling a Django app, complete with database removal?
Cornaceous asked 25/7, 2010 at 15:34
4
Solved
So I have an extended User model (extended AbstractUser) called Profile. This was in a seperate app called "profiles". I was plugging in the standard login and realised it was looking for a "profil...
Virulent asked 2/8, 2019 at 9:41
3
I want to remove an app from a django project.
I want to remove
the tables of the app
the content-types
foreign-key usages of these content-types
Running manage.py migrate app_to_remove zero d...
Jaclynjaco asked 2/3, 2016 at 10:57
3
By default, the Django admin dashboard looks like this for me:
I want to change the ordering of models in Profile section, so by using codes from here and here I was able to change the ordering of...
Dolphin asked 6/10, 2019 at 9:59
9
Solved
I have a Django project, let's say "project1".
Typical folder structure for applications is:
/project1/
/app1/
/app2/
...
__init__.py
manage.py
settings.py
urls.py
What should I do if I ...
Unexpressive asked 16/10, 2010 at 9:42
10
I created 'frontend' application using ./manage.py startproject frontend.
But for some reason I just want to change the app name in the Django admin to display 'Your Home Page' instead of 'frontend...
Supporting asked 17/11, 2014 at 12:21
32
Solved
I have ceated several django apps and stuffs for my own fun and so far everything has been working fine.
Now I just created new project (django 1.2.1) and have run into trouble from 1st moments.
I ...
Uke asked 6/6, 2010 at 16:48
1
I have been working on this for some time now, and would like to create facebook-like notification system. My project has following features
It has a blog interface where users can write their bl...
Sidney asked 22/12, 2011 at 11:5
5
Solved
I will be brief: to work in the spirit and idea of a Django app, it is ok for an app to import models from inside another app ? Say, a User statistics app will import models from a User app somethi...
Mennonite asked 9/11, 2010 at 18:46
3
I have 3 settings files:
base.py (shared)
development.py
production.py
base.py has:
INSTALLED_APPS = (
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes'
...
...
Serrulate asked 7/7, 2016 at 18:39
3
Solved
I've manually created a data migration file for a specific Django 1.11 app:
from __future__ import unicode_literals
from django.db import migrations, models
def set_item_things(apps, schema_edito...
Bothnia asked 23/3, 2018 at 14:6
3
Solved
In app1 I am trying to load static files from app2. I set no STATICFILES_FINDERS in project settings.py, which means, Django will use default AppDirectoriesFinder when it finds static subdirectory ...
Zebrass asked 29/1, 2017 at 21:15
3
Under my Django project there are a few apps and all of them have unit tests. One of them that I'm working right now is supposed to be included only in dev/stage environments, so I'm enabling it us...
Tshirt asked 5/3, 2018 at 18:50
4
We have a third party lib that we use in our Django 1.9 app. We would like to amend that application with some functionality not in the original app (targeting MongoDB). We currently do this via ou...
National asked 6/5, 2016 at 13:46
9
Solved
so I have 2 apps running in the same project.
My files are structured as follows:
/project_codebase
/project
__init.py
settings.py
urls.py
wsgi.py
...
/app1
...
/app2
...
manage.py
...
Occultation asked 8/5, 2017 at 12:2
1
Solved
I know this might sound stupid but I was just wondering what's the difference if I just type 'myapp' instead of 'myapp.apps.myappConfig' in my Installed Apps list. Is it something related to models...
Adorno asked 9/7, 2020 at 13:14
1
I have some django code that needs to run once when my app is loaded in the dev server or as a wsgi worker. This code also needs to write to the database. In my particular case I do not need the co...
Theatre asked 10/9, 2019 at 15:10
5
Solved
Is it possible to dynamically load Django apps at runtime? Usually, apps are loaded at initialization, using the INSTALLED_APPS tuple in settings.py. However, is it possible to load additional apps...
Embosser asked 4/6, 2014 at 2:8
1
What is the difference between django-admin startapp and python manage.py startapp? They both create apps and the files are also same so what's the difference between these two?
Caves asked 3/11, 2019 at 19:49
4
Solved
I have an AppConfig.ready() implementation which depends on the readiness of an other application.
Is there a signal or method (which I could implement) which gets called after all application rea...
Cowes asked 17/8, 2018 at 9:37
1
Solved
I have seen that there are two ways to add a Django app to the settings. Assuming the app is app_name, I've seen the following patters:
Using app_name
INSTALLED_APPS = [
# other apps
'app_nam...
Clamworm asked 30/3, 2019 at 21:55
3
Solved
I have a Django project with the following structure:
--|src
--project
--|settings
--__init__.py
--production.py
--local.py
--|app1
In my app I import the settings (from django.conf import s...
Backcross asked 15/7, 2018 at 3:39
4
Solved
Is there a preferred naming convention for creating a Django app consisting of more than one word? For instance, which of the following is preferred?
my_django_app
my-django-app Update: Not allow...
Stuppy asked 23/6, 2010 at 3:9
4
Solved
I have a web app with a project that works alone (it's index, login.. pages).
I would need to change the index page if a new app is installed (e.g: add a link, a table in the template with my app ...
Ironware asked 17/7, 2012 at 12:54
1 Next >
© 2022 - 2024 — McMap. All rights reserved.