C
C
Citizen052017-07-26 12:36:31
PHP
Citizen05, 2017-07-26 12:36:31

Django admin/model_name/add/ throws “Page not found” error on cpanel?

Raised a Django project on Cpanel. Now when I try to add an entry in the admin panel, when I click on the save button, I get an error Page not found. Although locally there is no error. The most interesting thing is that when contacting admin/model_name/add get with a request, everything works and the form for adding an entry opens, but when you click on the save button, which leads to the same page only with the post method, the page not found error already appears. I hope for your help! Here is my urls.py file:

urlpatterns = [
    url(r'^admin/', include(admin.site.urls)),
    url(r'^ckeditor/', include('ckeditor_uploader.urls')),
    url(r'^$', views.index, name='index'),
    url(r'news/', views.news, name='news'),
]

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2019-02-20
@AleksandrB

geckodriver

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question