All Questions
Tagged with django-apps django-urls
19 questions
2
votes
1
answer
35
views
Is it OK use multiple empty routes in Django URL patterns?
One of my project's app's url.py includes url files from other apps. Is there any issue I'm overlooking by including them with empty routes? e.g.:
In appA urls.py:
urlpatterns = [
path('hub/', ...
-1
votes
2
answers
59
views
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 ...
0
votes
1
answer
62
views
The issue is caused by a circular import. Django
Hello colleagues! I was working in Django project. I have a problem with my urls
In the project I only have one app within that app, I created my urls file to later import it into the urls of the ...
0
votes
1
answer
1k
views
The empty path didn't match any of these URLs
Using the URLconf defined in first_project.urls, Django tried these URL patterns, in this order:
^$ [name='index']
admin/
The empty path didn't match any of these.
This is code in urls.py
from django....
1
vote
1
answer
335
views
Django- Not displaying a PDF page on the front-end
I am trying to display a PDF page from within the 'document.HTML' page
The file structure is
1.Client2--> catalog --> Static --> catalog --> my css files etc
Client2--> catalog --> Templates --> ...
0
votes
0
answers
574
views
Django dont watch my app and TemplateDoesNotExist at /news
I think its this problem - django watching on mainApp but not on news app - django.template.loaders.app_directories.Loader: C:\Users\Name_User\Desktop\mysite\mainApp\templates\news\posts.html
but i ...
0
votes
1
answer
1k
views
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 ...
0
votes
1
answer
602
views
How to manage multiple templates with it's static files in multipl apps in django 2.2?
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 ...
0
votes
1
answer
37
views
Not able to add view and path to a package
So I am trying for several days to make my own function on the package "django-todo"
I am able to add mine in the view, but when I tried and add to the path it does not work.
I have register the app ...
2
votes
0
answers
2k
views
Calling a url from one app to another in Django
How do you access a namespaced url from a template of an app where the namespaced url is located in another app? I tried
"{% url 'mynamespace:url' %}"
But I get NoReverseMatch and mynamespace is ...
3
votes
2
answers
1k
views
Alias for app URI in Django project urls.py
My Django project "animals" has an app called "birds". In animals/urls.py the "birds" URIs are routed to birds/urls.py like this:
urlpatterns=[
url(r'^birds/', include('birds.urls')),
url(r'^...
0
votes
0
answers
58
views
Project Urls got overridden after installing Oscar
So I've been working on a project and I need 2 apps for it. I've made one of them from scratch and I am using Oscar(an e-commerce app). I have both the Apps in my Installed_Apps. But after installing ...
0
votes
0
answers
87
views
How to handle "No module name found" in django url
Suppose I have an django application which doesn't exist or is not included in INSTALLED_APPS in settings.py.
How to handle such an error? And at exactly what point in the flow is this error ...
2
votes
1
answer
1k
views
Django URLConf include from sub-app not working
I am trying to include a Django sub-app's urls into the main urls.py.
app/urls.py:
urlpatterns = patterns(
'',
...
include('transfers.urls'),
)
app/transfers/urls.py:
urlpatterns = ...
0
votes
3
answers
2k
views
Two apps in one URL in Django
I try to link two apps to one URL. I found an example, where that can be possible with "include" command and two separate "urls.py" for each app.
So, I tried to do that, but it still only one app ...
1
vote
0
answers
79
views
API URL's are not working for django app
I have hosted a django-python app into server.The app is using mysql as database for app.Unfortunately mysql is upgraded to percona on same server,then after all the django app URL calls are not ...
7
votes
1
answer
3k
views
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 ...
2
votes
2
answers
4k
views
Django isn't including the urls.py from an installed app
I am getting the error below:
Caught NoReverseMatch while rendering: Reverse for 'satchless-checkout-prepare-order' with arguments '()' and keyword arguments '{}' not found.
But I have satchless....
1
vote
1
answer
110
views
HowTo Install the Django emailauth App into a New Project
I'm a Django newbie and am interesting in understanding how to install the EmailAuth app into my new project:
http://github.com/redvasily/django-emailauth
Seems like Django apps are meant to be ...