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
-1
votes
0 answers

What is the neatest way to implement an optional update for a django web app?

I am creating an open-source web app using Django that anyone can install on their local machine, Heroku, etc. The most obvious way for the clients to get updates in the app is to ask them to pull the latest version from GitHub. Is there a cleaner,…
NKS
  • 165
  • 1
  • 8
-1
votes
1 answer

Django how to change CSS according the app you are in

I am pretty new with Django, I am customizing my admin section and I'd like to change the CSS according to the app I am browsing. Is it possible? I noticed that the uploaded CSS is the one in the first static folder found by the system. Is there…
Rapture
  • 1
  • 2
-1
votes
2 answers

linking apps in Django, which is better, urls.py or app.py?

Going through some tutorials as a beginner in Django, I noticed a tutor linked the various apps in the urls.py and another tutor did it with the app.py using the config function just looking for clarification before I try anything
-1
votes
1 answer

ModuleNotFoundError: No module named 'app1'

Created a new app named 'app1'. Have included the app name under INSTALLED_APPS settings. Got the error 'ModuleNotFoundError: No module named 'app1'' Request your help.
-1
votes
1 answer

virtualenv raises importerror because of changing app name in django

I've used [this link] to rename my django app. So I've edited some files and table's name and so on. But as it has been mentioned in that link, There is problem with virtualenv. So how can I fix it? I've change name "notes" to "blog". The apps.py…
niloofar
  • 2,244
  • 5
  • 23
  • 44
-1
votes
1 answer

How to set path of multiple custom apps in django?

Can anyone please help me with this. MyProject is the name of my project in django with two different apps HappyHomes and HappyHomesAdmin. I want to switch from HappyHomes to HappyHomesAdmin. How to set path in urls file? How many files in total I…
-1
votes
1 answer

How can I call a external API from django admin and display data, also want to make POST call to external API from admin

I want to call an external service API in the Django admin and display the data. Also, I want to create a form so that taking input from the admin, should able to make a POST to external service. My app does not have any models. django-admin…
-1
votes
2 answers

Django: can't access to a folder of template of specific application

I'm a newbie in Django, and I created a project "first pycharm" with structure like that: \firstpycharm | manage.py | views.py +---firstpycharm | | middleware.py | | models.py | | settings.py | | urls.py | | wsgi.py | |…
Jame H
  • 1,324
  • 4
  • 15
  • 26
-1
votes
1 answer

Import model from app to main django project

I have made my website in django. There is one main project folder names django_project and one blogging project names blogging. All the blogs i have created are stored in the model of blogging folder. If i want to show a list of all blogs in home…
-1
votes
1 answer

Can I get django-oscar to work under Python 3?

I am working with Python 3.6.0, Django 1.10.6, and Oscar version 1.4.0 final. I've seen similar-looking error messages discussed and reported solved by certain solutions (e.g. updating what was "still" an old-time autogenerated wsgi.py), or adding…
Christos Hayward
  • 5,777
  • 17
  • 58
  • 113
-1
votes
1 answer

404 error when adding a new app on django

​I'm having an issue with my site, in making and incorporating a second app. The first works perfectly. You can see the demo site here: http://216.158.236.51​​​ but when I try to visit the new url pages created http://216.158.236.51/​signup for…
Kyle
  • 11
-1
votes
2 answers

Django 1.9 ImportError: No module named 'appname' on shell

I have a project say MyProject with the given directory structure, where the apps are installed in the applications directory. . ├── myapp │   ├── __init__.py │   ├── __init__.pyc │   ├── settings.py │   ├── settings.pyc │   ├── urls.py │   ├──…
All Іѕ Vаиітy
  • 24,861
  • 16
  • 87
  • 111
-1
votes
1 answer

Django Unit test

i have two servers,one working as api and another used to retrieve the data from api(webui).If i perform any unit tests for views in webui,it is creating objects in api.How to delete the objects in api after the testing is complete?Can you suggest…
Debajyoti
  • 1
  • 2
-2
votes
1 answer

Create django app for functionality only

I'm just starting with django even if i'm no new to python, so i'm creating a testing project just to explore django features, workflow and so on. I already made apps (like the usual polls, books, etc), but now i would like to make an app that…
fudo
  • 2,254
  • 4
  • 22
  • 44
-2
votes
1 answer

How to glue all my apps together in Django?

If my website is broken down into several apps, then what glues them together? Does the chrome of my website needs to be an app, thereby my apps are within an app?
css3newbie
  • 165
  • 1
  • 5
1 2 3
28
29