Questions tagged [django-apps]

Django apps are reusable collections of django code that use the ORM layer. They may provide a single model class, or they may implement a full web application, or provide any mixture of such functionality.

Django apps are reusable collections of django code that use the ORM layer. They may provide a single model class, or they may implement a full web application, or provide any mixture of such functionality.

421 questions
9
votes
1 answer

how to include django templates in app installed via pip?

I'm working on a django app (django-flux) and I'm trying to get it to properly install with pip from pypi. From this blog post and the distutils documentation, it seems like my setup.py and MANIFEST.in files should be including the…
dino
  • 3,093
  • 4
  • 31
  • 50
8
votes
3 answers

Django - Load static files from another app

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 inside app directory. Problem: In template files of…
Fusion
  • 5,046
  • 5
  • 42
  • 51
8
votes
2 answers

Django: Is there a way to have the "through" model in a ManyToManyField in a different app to the model containing the ManyToManyField?

Lets say I have two django apps: competitions - which will handle competition data entries - which will handle functionality relating to entering competitors into competitions In the competitions app I have a model which represents a section of a…
Monika Sulik
  • 16,498
  • 15
  • 50
  • 52
8
votes
2 answers

Same Django project different GIT repositories

Which is the best way to have two different repositories on the same Django project? I started developing a project months ago and I have the whole folder in the repository. I want to reuse some apps in the project and I would like to create a…
Mc-
  • 3,968
  • 10
  • 38
  • 61
7
votes
1 answer

how to make interaction between different django apps in a single site?

I have just learnt about Django apps. I want to know that within one site, if I make different apps. like, users, profiles, polls, blogs,comments, jobs , applications then how can I manage them to make them intereactive? And is it how the concept of…
Hafiz
  • 4,187
  • 12
  • 58
  • 111
7
votes
1 answer

Django app for image crop using a cropping tool

I need an app for crop an image in the client side, I mean, using a cropping tool like Jcrop jquery plugin. I found this tools: django-image-cropper django-image-cropping django-imagehandler django-avatar-crop But the last two depends of admin and…
diegueus9
  • 29,351
  • 16
  • 62
  • 74
7
votes
1 answer

django-admin startapp v/s python manage.py startapp

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?
7
votes
3 answers

Django executing tests for app not in INSTALLED_APPS

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 using a environment variable. When this variable is…
Gabriel
  • 71
  • 1
  • 2
7
votes
2 answers

Exclude system paths from django_coverage

I'm running django_coverage over a project with the command test_coverage. It's working, but it's including in the output and final calculation code in /usr/local/lib/python2.6/dist-packages. I'm not interested in knowing about the coverage of those…
exupero
  • 9,136
  • 8
  • 47
  • 63
7
votes
3 answers

How to develop/include a Django custom reusable app in a new project? Are there some guidelines?

Following tutorial on Django reusable apps things work fine. But I have some questions about the process of developing and packaging a Django app. 1 - In the tutorial, the app is developed first within a project. Then, it is copy-pasted out in…
gustavovelascoh
  • 1,208
  • 1
  • 14
  • 28
6
votes
3 answers

How do you make a Django app pluggable?

Say for example I have a Blog app that I want to be able to drop into different projects, but I always want the Blog to be associated with some other model. For example, in one case I may want it to be associated with a…
rick
  • 4,103
  • 9
  • 37
  • 41
6
votes
2 answers

Multiple django apps in one view

I guess i have a simple question about better code organization. Say i have multiple apps that also implement how these apps should be represented on presentation layer. I am trying to understand how to organize the code if i need to present…
user1039384
  • 521
  • 7
  • 16
6
votes
1 answer

Django - 'myapp' vs 'myapp.apps.myappConfig' in settings.py Installed Apps

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 or what? Regards
6
votes
3 answers

Set ordering of Apps and models in Django admin dashboard

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 model names in Django admin dashboard: class…
wiki
  • 1,877
  • 2
  • 31
  • 47
6
votes
1 answer

How to add a Django app to settings.py app_name or app_name.apps.AppNameConfig?

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_name' ] Using…
lmiguelvargasf
  • 63,191
  • 45
  • 217
  • 228
1 2
3
28 29