Django Parler throwing 404 error when switching language

2022-01-19 Thread nonw...@gmail.com
load French by default by creating a middleware and adding it to settings, but my challenge is this, I can't switch the site to English, If I do it gives me a 404 error here is the link to the site site https://ambassadedusaintesprit.com *Middleware* from django.conf import settings

Re: 404 error

2020-09-12 Thread Spyke Lionel
yes I did. it should work properly. I just wanna display a list of items after the link has been clicked. But it happens that I get http://127.0.0.1:8000/music// The last forward slash shouldn't have added. This work when the integer is inserted manually on the address. http://127.0.0.1:8000/music/

Re: 404 error

2020-09-12 Thread Kunal Solanke
Did you try what I told? On Sat, Sep 12, 2020, 14:05 Spyke Lionel wrote: > I don't understand how the url became > http://127.0.0.1:8000/music// > Instead of http://127.0.0.1:8000/music// > > > On Sat, Sep 12, 2020, 8:29 AM 'Amitesh Sahay' via Django users < > django-users@googlegroups.com> wrot

Re: 404 error

2020-09-12 Thread Spyke Lionel
I don't understand how the url became http://127.0.0.1:8000/music// Instead of http://127.0.0.1:8000/music// On Sat, Sep 12, 2020, 8:29 AM 'Amitesh Sahay' via Django users < django-users@googlegroups.com> wrote: > You are trying "http://127.0.0.1:8000/music//"; >

Re: 404 error

2020-09-12 Thread 'Amitesh Sahay' via Django users
You are trying "http://127.0.0.1:8000/music//"; try something like http://127.0.0.1:8000// Regards, Amitesh  On Saturday, 12 September, 2020, 12:55:57 pm IST, Kunal Solanke wrote: I think he have created the music url,But the {{album_id}} is not properly passed as context from view

Re: 404 error

2020-09-12 Thread Kunal Solanke
In your template it should be {{album.id}} or {{album.album_id}} depending how your models are.I am talling about href in anchor tag. On Sat, Sep 12, 2020, 12:54 Kunal Solanke wrote: > I think he have created the music url, > But the {{album_id}} is not properly passed as context from view. > >

Re: 404 error

2020-09-12 Thread Kunal Solanke
I think he have created the music url, But the {{album_id}} is not properly passed as context from view. On Sat, Sep 12, 2020, 12:52 'Amitesh Sahay' via Django users < django-users@googlegroups.com> wrote: > At the first glance, I think you havn't created URL pattern for "music". > May bejus

Re: 404 error

2020-09-12 Thread 'Amitesh Sahay' via Django users
At the first glance, I think you havn't created URL pattern for "music". May bejust saying. Regards, Amitesh  On Saturday, 12 September, 2020, 12:47:56 pm IST, Spyke Lionel wrote: I have this urlpatterns.. urlpatterns = [    path('', views.index, name='index'),    path('/', vie

404 error

2020-09-12 Thread Spyke Lionel
I have this urlpatterns.. urlpatterns = [ path('', views.index, name='index'), path('/', views.detail, name='detail'), ] my index.html looks like this Albums to display {% for album in all_albums %} {{ album.album_title }} {% endfor %} #my index.html simply displays my alb

A 404 error with “id-” in slug

2020-05-05 Thread Oleg Barbos
A 404 error with “id-” in slug on multilingual website with Indonesian language in Django 3.0 Could someone suggest a solution to this? *http://example.com/de/id-button/* - 200 OK *http://example.com/id/id-button/* - 200 OK *http://example.com/any-other-slug/* - 200 OK *http://example.com/id

A 404 error with “id-” in slug

2020-05-05 Thread Oleg Barbos
A 404 error with “id-” in slug on multilingual website with Indonesian language in Django 3.0 Could someone suggest a solution to this? *http://example.com/de/id-button/* - 200 OK *http://example.com/id/id-button/* - 200 OK *http://example.com/any-other-slug/* - 200 OK *http://example.com/id

A 404 error with “id-” in slug

2020-05-05 Thread Oleg Barbos
A 404 error with “id-” in slug on multilingual website with Indonesian language in Django 3.0 Could someone suggest a solution to this? *http://example.com/de/id-button/* - 200 OK *http://example.com/id/id-button/* - 200 OK *http://example.com/any-other-slug/* - 200 OK *http://example.com/id

A 404 error with “id-” in slug on multilingual website with Indonesian language

2020-05-05 Thread Oleg Barbos
Could someone suggest a solution to this? *http://example.com/de/id-button/* - 200 OK *http://example.com/id/id-button/* - 200 OK *http://example.com/any-other-slug/* - 200 OK *http://example.com/id-button/* - 404 error: Using the URLconf defined in example.urls, Django tried these URL

Re: Page 404 error after running Django server

2020-05-04 Thread Deepti sharma
Thanks everyone. I updated HttpRequest with HttpResponse. Then in urls.py: I did: path(‘’, views.welcome) Its working now On Mon, May 4, 2020 at 3:06 PM Nomeh Uchenna Gabriel < nomehgabri...@gmail.com> wrote: > Hi! you're just visiting a different url from what you specified in your > "urls.py"

Page 404 error after running Django server

2020-05-04 Thread Nomeh Uchenna Gabriel
Hi! you're just visiting a different url from what you specified in your "urls.py" file. look closely at the routes "django" is telling you that it tried: [admin/, welcome.html/] ... these are truly the two paths that you specified, why on earth are you trying to visit a non-existing path(http

Re: Page 404 error after running Django server

2020-05-04 Thread Jorge Gimeno
I just realized that the view is returning an HttpRequest. It should be an HttpResponse object (and the import should be changed to bring that object in as well). -Jorge On Mon, May 4, 2020 at 11:43 AM Deepti sharma wrote: > @rdsaini...@gmail.com > I updated it with: path("welcome/",views.welc

Re: Page 404 error after running Django server

2020-05-04 Thread 'Amitesh Sahay' via Django users
Please import HttpResponse ,  HttpRequest will not work Sent from Yahoo Mail on Android On Tue, 5 May 2020 at 0:14, Amitesh Sahay wrote: path("", views.welcome) This should work Sent from Yahoo Mail on Android On Tue, 5 May 2020 at 0:13, Deepti sharma wrote: @rdsaini...@gmail.com 

Re: Page 404 error after running Django server

2020-05-04 Thread 'Amitesh Sahay' via Django users
path("", views.welcome) This should work Sent from Yahoo Mail on Android On Tue, 5 May 2020 at 0:13, Deepti sharma wrote: @rdsaini...@gmail.com I updated it with: path("welcome/",views.welcome),But  no success. Error at http://127.0.0.1:8000/welcome : TypeError at /welcome/ __init__() ta

Re: Page 404 error after running Django server

2020-05-04 Thread Deepti sharma
@rdsaini...@gmail.com I updated it with: path("welcome/",views.welcome), But no success. Error at http://127.0.0.1:8000/welcome : TypeError at /welcome/ __init__() takes 1 positional argument but 2 were given Request Method: GET Request URL: http://127.0.0.1:8000/welcome/ Django Version: 3.0.5

Re: Page 404 error after running Django server

2020-05-04 Thread R D Saini
path("welcome/",views.welcom), On Mon 4 May, 2020, 11:42 PM 'Amitesh Sahay' via Django users, < django-users@googlegroups.com> wrote: > There are lots of issues with urls.py > Please go through the django documents on how to write urls.py > > Sent from Yahoo Mail on Android >

Re: Page 404 error after running Django server

2020-05-04 Thread Deepti sharma
Hi, I did replace it with: path('',welcome) But it's still no working: Page not found (404) Request Method: GET Request URL: http://127.0.0.1:8000/welcome Using the URLconf defined in meeting_planner.urls, Django tried these URL patterns, in this order: 1. admin/ 2. The current path, welc

Re: Page 404 error after running Django server

2020-05-04 Thread Franz Ulenaers
pleae change your urls.py as follow urlpatterns = [ path('admin/', admin.site.urls), path('', welcome) ] Op maandag 4 mei 2020 20:09:51 UTC+2 schreef Deepti sharma: > > Hi, I have just started learning django and was trying to make a meeting > planner project y folllowing a course. > I

Re: Page 404 error after running Django server

2020-05-04 Thread franz ulenaers
path('welcome.html', welcome) should be : path('', welcome) Op 4/05/2020 om 20:11 schreef 'Amitesh Sahay' via Django users: There are lots of issues with urls.py Please go through the django documents on how to write urls.py Sent from Yahoo Mail on Android

Re: Page 404 error after running Django server

2020-05-04 Thread 'Amitesh Sahay' via Django users
There are lots of issues with urls.pyPlease go through the django documents on how to write urls.py Sent from Yahoo Mail on Android On Mon, 4 May 2020 at 23:39, Deepti sharma wrote: Hi, I have just started learning django and was trying to make a meeting planner project y folllowing a co

Page 404 error after running Django server

2020-05-04 Thread Deepti sharma
Hi, I have just started learning django and was trying to make a meeting planner project y folllowing a course. I updated the setting.py file to add website into Instaled_Apps. Then have written a function named welcome in views.py Finally I added it's entry into urls.py fie But when I run the se

Re: 404 error

2020-02-12 Thread Chucky Mada Madamombe
Hi, 404 error means Django searched your urls.py file and cannot find the requested page. Take screen shot of your urls.py and views.py and traceback. That may help us to figure out the problem. Regards Chuck G. Madamombe NAM: +264 81 842 1284 RSA: +27 78 208 7034 Twitter: @chuckygari Skype

Re: 404 error

2020-02-12 Thread Jorge Gimeno
On Wed, Feb 12, 2020 at 2:29 PM mahshid asadi wrote: > Hi everyone. Im a beginner. i use this sites tutorial and still i cant fix > the 404 error,please someone help me. > > -- > You received this message because you are subscribed to the Google Groups > "Django users&q

404 error

2020-02-12 Thread mahshid asadi
Hi everyone. Im a beginner. i use this sites tutorial and still i cant fix the 404 error,please someone help me. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, sen

Re: 404 error

2019-09-09 Thread ANi
The fastest way to know why is to read your error messages. arpit Dubey於 2019年9月7日星期六 UTC+8下午11時38分38秒寫道: > > I have followed all the steps for creating our first app polls but it is > showing the error of 404 > could you please help me to finding it out why it is happening there after > co

404 error

2019-09-07 Thread arpit Dubey
I have followed all the steps for creating our first app polls but it is showing the error of 404 could you please help me to finding it out why it is happening there after copying each and every step from documentation. -- You received this message because you are subscribed to the Google Gr

Re: 404 error when posting a multipart/form-data form

2019-04-24 Thread Manlio Perillo
on POST. > > I tried to remove all the middleware, but the problem is still here. > The error message says that the 404 error was raised by my view, but > that's not true; my view is not called at all during a POST request. > > What's strange is that I have another D

Re: 404 error when posting a multipart/form-data form

2019-03-22 Thread Manlio Perillo
On Friday, March 22, 2019 at 8:35:13 PM UTC+1, Raffaele Salmaso wrote: > > On Thu, Mar 21, 2019 at 2:42 PM Manlio Perillo > wrote: > >> The view code is here: >> https://gist.github.com/perillo/2f828209cea84ff8c753f6f2524119f1 >> > I d > Because I have remove every extra components. I removed a

Re: 404 error when posting a multipart/form-data form

2019-03-22 Thread Raffaele Salmaso
On Thu, Mar 21, 2019 at 2:42 PM Manlio Perillo wrote: > The view code is here: > https://gist.github.com/perillo/2f828209cea84ff8c753f6f2524119f1 > I don't see the {% csrf_token %} in the template -- | Raffaele Salmaso | https://salmaso.org | https://bitbucket.org/rsalmaso | https://github.com/

Re: 404 error when posting a multipart/form-data form

2019-03-22 Thread Marcio Bernardes
Hey Manlio make sure to change the action option in the form html, use something like {% url ‘url_name’ %} there. Do not use this point path. Cheers! Sent from my iPhone > On 22. Mar 2019, at 16:09, Mohammad Etemaddar > wrote: > > I'm not sure about this, but I think maybe it would be about

Re: 404 error when posting a multipart/form-data form

2019-03-22 Thread Mohammad Etemaddar
I'm not sure about this, but I think maybe it would be about your Django bug. Have you updated your Django? On Friday, March 22, 2019 at 7:37:14 PM UTC+4:30, Manlio Perillo wrote: > > On Friday, March 22, 2019 at 3:23:32 PM UTC+1, Manlio Perillo wrote: >> >> On Friday, March 22, 2019 at 1:28:55 P

Re: 404 error when posting a multipart/form-data form

2019-03-22 Thread Manlio Perillo
On Friday, March 22, 2019 at 3:23:32 PM UTC+1, Manlio Perillo wrote: > > On Friday, March 22, 2019 at 1:28:55 PM UTC+1, Hamady Medvall wrote: >> >> You have to add the path /bug in URLConfig >> >> > A GET request to /mp/bug/ does not return an error, only a POST request > and *only* when using a f

Re: 404 error when posting a multipart/form-data form

2019-03-22 Thread Manlio Perillo
On Friday, March 22, 2019 at 1:28:55 PM UTC+1, Hamady Medvall wrote: > > You have to add the path /bug in URLConfig > > A GET request to /mp/bug/ does not return an error, only a POST request and *only* when using a file upload. >From the trace I see that it's the URL resolver that raises the 404

Re: 404 error when posting a multipart/form-data form

2019-03-22 Thread Hamady Medvall
You have to add the path /bug in URLConfig On Fri, Mar 22, 2019 at 10:45 AM Manlio Perillo wrote: > On Thursday, March 21, 2019 at 2:42:31 PM UTC+1, Manlio Perillo wrote: >> >> On Thursday, March 21, 2019 at 10:56:43 AM UTC+1, Mohammad Etemaddar >> wrote: >>> >>> Can you send your view here? >>>

Re: 404 error when posting a multipart/form-data form

2019-03-22 Thread Manlio Perillo
On Thursday, March 21, 2019 at 2:42:31 PM UTC+1, Manlio Perillo wrote: > > On Thursday, March 21, 2019 at 10:56:43 AM UTC+1, Mohammad Etemaddar wrote: >> >> Can you send your view here? >> >> > Here is the URL that reproduce the problem: > https://fast-page.it/mp/bug/ > > and here is the URL that p

Re: 404 error while loading uploaded image when debug is False

2019-03-21 Thread Mohammad Etemaddar
In production , we serve static files (like images) stright from httpd like apache, and we do not call django to serve them. But in testing while run django test server, we use static paths in urls.py to serve them, Maybe you have added mediaurls to your urlpatterns in urls.py conditionally (when

404 error while loading uploaded image when debug is False

2019-03-21 Thread mayank dubey
Hii there, I am not able to load images which have been uploaded through the admin portal on my Django site if I set debug = false. While when debug = true, images are easily loaded. I am not able to understand what is the problem, please help me out. Thank you, M -- You received this message b

Re: 404 error when posting a multipart/form-data form

2019-03-21 Thread Manlio Perillo
On Thursday, March 21, 2019 at 10:56:43 AM UTC+1, Mohammad Etemaddar wrote: > > Can you send your view here? > > Here is the URL that reproduce the problem: https://fast-page.it/mp/bug/ and here is the URL that prints the Django environment: https://fast-page.it/mp/debug/ The view code is here: h

Re: 404 error when posting a multipart/form-data form

2019-03-21 Thread Mohammad Etemaddar
> on POST. > > I tried to remove all the middleware, but the problem is still here. > The error message says that the 404 error was raised by my view, but > that's not true; my view is not called at all during a POST request. > > What's strange is that I have another Dja

404 error when posting a multipart/form-data form

2019-03-21 Thread Manlio Perillo
says that the 404 error was raised by my view, but that's not true; my view is not called at all during a POST request. What's strange is that I have another Django application on a different hosting account with the same environment and it works fine. The problem is probably in my a

Re: 404 error on tried these URL patterns, in this order: ^polls/ ^admin/

2018-06-18 Thread emmanuel wyckens
8 22:36:53 UTC+2, C. Kirby a écrit : > > What it the url you tried to access? > > On Friday, June 15, 2018 at 10:41:41 AM UTC-4, emmanuel wyckens wrote: >> >> Hello >> >> I didn't find my 404 error, it's seems that the issue is arround the urls >&

Re: 404 error on tried these URL patterns, in this order: ^polls/ ^admin/

2018-06-15 Thread C. Kirby
What it the url you tried to access? On Friday, June 15, 2018 at 10:41:41 AM UTC-4, emmanuel wyckens wrote: > > Hello > > I didn't find my 404 error, it's seems that the issue is arround the urls > configuration on the project. In additionnal, find the zip project for

404 error on tried these URL patterns, in this order: ^polls/ ^admin/

2018-06-15 Thread emmanuel wyckens
Hello I didn't find my 404 error, it's seems that the issue is arround the urls configuration on the project. In additionnal, find the zip project for more details. Confg : django 1.11.11, python 2.7 Please could you help me ? Thanks In urls.py from django.conf.urls import ur

Re: Djangoproject tutorial part 1 - keep on getting 404 error on polls

2017-03-07 Thread Vanja Falck
: > > Checked the ^ sign, but it was only missing a return - no syntax-error or > change in the current 404 error, so I assume it is interpreted right. > > The error message is only this (deliberately exchanged my actual site with > xxx) - with the 404 header: > > Usin

Re: Djangoproject tutorial part 1 - keep on getting 404 error on polls

2017-03-07 Thread Vanja Falck
Checked the ^ sign, but it was only missing a return - no syntax-error or change in the current 404 error, so I assume it is interpreted right. The error message is only this (deliberately exchanged my actual site with xxx) - with the 404 header: Using the URLconf defined in xxx.urls, Django

Re: Djangoproject tutorial part 1 - keep on getting 404 error on polls

2017-03-07 Thread ludovic coues
I think I see your problem. Look like you can type a character looking a lot like ^ but being different. ^ is ascii character 94, which represent the start of a line in a regular expression. 2017-03-07 14:10 GMT+01:00 ludovic coues : > Is there any information on the 404 page ? > I remember django

Re: Djangoproject tutorial part 1 - keep on getting 404 error on polls

2017-03-07 Thread ludovic coues
Is there any information on the 404 page ? I remember django being quite chatty as long it's in debug mode 2017-03-07 10:56 GMT+01:00 Vanja Falck : > Hi, > I have startet the first part of the djangoproject tutorial and get stuck in > part 1 - getting 404 errors on /polls/ - the admin page is ok.

Djangoproject tutorial part 1 - keep on getting 404 error on polls

2017-03-07 Thread Vanja Falck
Hi, I have startet the first part of the djangoproject tutorial and get stuck in part 1 - getting 404 errors on /polls/ - the admin page is ok. Any one have an idea about what is wrong? Followed the instructions carefully (django 1.10 - version). Running in virtualenv with python 3.5.2 and djang

Re: Iframe'd page in Django template can't find it's Javascript or CSS files, 404 error

2017-03-05 Thread Melvyn Sopacua
On Friday 03 March 2017 20:37:29 Tom Tanner wrote: > When the iframe requests > `/interactive`, it loads `interactive-1/index.html`. But the iframe still loads /interactive. So it's base url is /interactive and a request for scripts/main.js is /interactive/scripts/main.js. Unless you either: 1/

Re: Iframe'd page in Django template can't find it's Javascript or CSS files, 404 error

2017-03-05 Thread chris rose
there is a lack of information here, though you last post suggests maybe you missed a couple of template tags at the start of you index.html add: {% load staticfiles %} and then when adding you scripts use: -- You received this message because you are subscribed to the Google Groups "Djang

Re: Iframe'd page in Django template can't find it's Javascript or CSS files, 404 error

2017-03-04 Thread Daniel Roseman
On Saturday, 4 March 2017 15:57:49 UTC, Tom Tanner wrote: > > >How are you referring to the assets in the template? > > In `interactive/index.html`, in the `` tag, I have ` src="scripts/main.js">` > Well, if you wanted to load the scripts from /interactive-1/scripts/main.js, then that's what you

Re: Iframe'd page in Django template can't find it's Javascript or CSS files, 404 error

2017-03-04 Thread Tom Tanner
set to `1`. When the iframe requests >> `/interactive`, it loads `interactive-1/index.html`. The iframe loads the >> HTML from that page, but cannot get the JS file at >> `interactive-1/scripts/main.js`. >> >> When I check the terminal, I see this 404 er

Re: Iframe'd page in Django template can't find it's Javascript or CSS files, 404 error

2017-03-04 Thread Daniel Roseman
and > `request.session['id']` is set to `1`. When the iframe requests > `/interactive`, it loads `interactive-1/index.html`. The iframe loads the > HTML from that page, but cannot get the JS file at > `interactive-1/scripts/main.js`. > > When I check the termina

Iframe'd page in Django template can't find it's Javascript or CSS files, 404 error

2017-03-04 Thread Tom Tanner
html`. The iframe loads the HTML from that page, but cannot get the JS file at `interactive-1/scripts/main.js`. When I check the terminal, I see this 404 error: `GET /interactive/scripts/main.js`. If it would just load `/interactive-1/scripts/main.js`, there would be no problem. But Django

Re: URLconf problem: why I'm geting 404 error when I should'nt?

2016-08-23 Thread Lao Zzi
t;view." before it, but I don't this way, because using views.hello is more logical and clear.20.08.2016, 17:36, "Anahita Hedayati-Fard" <a.hedayat...@gmail.com>: Hello I'm a beginner in Django. I'm trying to write my first URlconf but it doesn't work and it sh

Re: Getting a PageNotFound 404 Error

2015-07-29 Thread Александр Мусаров
Thanks a lot!!! Damned regexes... среда, 29 июля 2015 г., 19:56:46 UTC+3 пользователь James Schneider написал: > > Instead of /w you should use \w in your URL regex, right now all you are > matching is literally - and / and w... > > -James > On Jul 29, 2015 9:52 AM, "Александр Мусаров" > wrote:

Re: Getting a PageNotFound 404 Error

2015-07-29 Thread James Schneider
Instead of /w you should use \w in your URL regex, right now all you are matching is literally - and / and w... -James On Jul 29, 2015 9:52 AM, "Александр Мусаров" wrote: > Hi, folks! I'm new to Django, now I'm writing my first e-commerce in it, > and now I'm having a mistake that I can not fin

Getting a PageNotFound 404 Error

2015-07-29 Thread Александр Мусаров
Hi, folks! I'm new to Django, now I'm writing my first e-commerce in it, and now I'm having a mistake that I can not find in code myself. Please help me.. The code is the following: The trouble URL code line : url(r'^(?P[-/w]+)/$', views.category, name = 'category_detail'), The view code :

Re: Keep getting 404 error

2012-03-25 Thread Sergiy Khohlov
try to open http://127.0.0.1:8000/hello 2012/3/25 Sithembewena Lloyd Dube : > Hi Mika, > > Welcome to Django. > > I think the issue is that the URL 'http://127.0.0.1:8000/' merely points to > your local machine's port (8000), whereas you want to browse to > 'http://127.0.0.1:8000/hello/' - which i

Keep getting 404 error

2012-03-24 Thread Mika
I'm a total newbie to django and just started the book. I created a project and I'm now trying to create my first page, but I keep getting an error page that says: Page not found (404) Request Method: GET Request URL:http://127.0.0.1:8000/ Using the URLconf defined in redlab.urls, Django tried

Re: StackedLinein and 404 error

2011-10-13 Thread akshar raaj
As pointed by the error message you are getting, the url you tried did not match any of the urls django is aware of. For using any Model in the admin, you need to register it with the admin. As evident from your url, you are trying to use a model named Choice under polls app. But you have not regi

StackedLinein and 404 error [SOLVED]

2011-10-08 Thread EdgarAllenPoe
There was nothing wrong with the code. I just needed to restart my server, and it worked like a charm On Oct 8, 11:15 pm, EdgarAllenPoe wrote: > Working on django tutorial > here:https://docs.djangoproject.com/en/dev/intro/tutorial02/ > and I am stuck where they start the instructions about St

StackedLinein and 404 error

2011-10-08 Thread EdgarAllenPoe
Working on django tutorial here: https://docs.djangoproject.com/en/dev/intro/tutorial02/ and I am stuck where they start the instructions about Stackedlnline. I keep getting the following error: Page not found (404) Request Method: GET Request URL:http://127.0.0.1:8000/admin/polls/cho

Re: Mystery... Faked Referrer Generates 500 Instead of 404 Error

2011-08-31 Thread Reinout van Rees
/calendar.pl IOError: request data read error 'HTTP_REFERER': 'http://mydomain.org/calendar.pl', 'PATH_INFO': u'/sample/path/calendar.pl', If I visit the pagehttp://mydomain.org/calendar.pl, I get a 404 error, but the error messag

Mystery... Faked Referrer Generates 500 Instead of 404 Error

2011-08-31 Thread charris
data read error 'HTTP_REFERER': 'http://mydomain.org/calendar.pl', 'PATH_INFO': u'/sample/path/calendar.pl', If I visit the page http://mydomain.org/calendar.pl, I get a 404 error, but the error message referencing the same page generates an

Re: 404 error in admin interface with mod_python and >=django-1.1

2010-06-11 Thread Jan Meier
On 11 Jun., 15:30, Karen Tracey wrote: > Yes, you've got your admin registrations in your models.py file. models.py > won't necessarily be loaded early in a production environment with > DEBUG=False, so these registration calls are not running before you start > using admin. Move admin registrati

Re: 404 error in admin interface with mod_python and >=django-1.1

2010-06-11 Thread Karen Tracey
On Fri, Jun 11, 2010 at 4:49 AM, Jan Meier wrote: > And my model my_app/models.py looks as follows: > > from django.db import models > from django.contrib import admin > > class Blubb(models.Model): >x = models.IntegerField() > > admin.site.register(Blubb) > > Any ideas what could be wron

404 error in admin interface with mod_python and >=django-1.1

2010-06-11 Thread Jan Meier
Hi, I am serving my django project with mod_python and ran into a problem regarding the admin interface (django.contrib.admin). If DEBUG = False is set in settings.py the admin interface generates 404 error messages when clicking on any of my models, for example to add a new entry. The django

Re: URL Matching: 404 Error

2010-01-30 Thread When ideas fail
Ah, I see, the problem is with the keys.., not the URLs On 30 Jan, 22:16, When ideas fail wrote: > Hi, I seem to be having a problem matching one of my URLs. > I have this URL in my .py file in one of my user app. > >  url(r'^activate/(?P\w+)/$', >                            activate, >          

URL Matching: 404 Error

2010-01-30 Thread When ideas fail
Hi, I seem to be having a problem matching one of my URLs. I have this URL in my .py file in one of my user app. url(r'^activate/(?P\w+)/$', activate, name='registration_activate'), and then thats added to my project urls: (r'^users/', inclu

Re: generic views 404 error

2009-10-27 Thread Brian McKeever
More info is needed. Could you post your urls? On Oct 25, 8:39 pm, Ross wrote: > I just neared the end of the poll application and converted everything > to generic views according to the tutorial. Once I started up the > server though, I could only find my admin page. I tried using the > newly

generic views 404 error

2009-10-25 Thread Ross
I just neared the end of the poll application and converted everything to generic views according to the tutorial. Once I started up the server though, I could only find my admin page. I tried using the newly named urls but I keep getting Page not Found 404 errors. Same thing happens when I type i

Re: URL Parameter is not found, 404 error

2009-09-22 Thread Malcolm MacKinnon
Thanks for your help, Daniel. I made the change. On Mon, Sep 21, 2009 at 11:47 PM, Daniel Roseman wrote: > > On Sep 22, 2:31 am, Malcolm MacKinnon wrote: > > Thanks, Karen. With your help, I manged to fix it. > > Note that - quite apart from your original problem - you've got a > serious ineffic

Re: URL Parameter is not found, 404 error

2009-09-21 Thread Daniel Roseman
On Sep 22, 2:31 am, Malcolm MacKinnon wrote: > Thanks, Karen. With your help, I manged to fix it. Note that - quite apart from your original problem - you've got a serious inefficiency in this view. You iterate through every customer to find a matching customer number which, once you get more th

Re: URL Parameter is not found, 404 error

2009-09-21 Thread Malcolm MacKinnon
Thanks, Karen. With your help, I manged to fix it. On Mon, Sep 21, 2009 at 5:52 PM, Karen Tracey wrote: > On Mon, Sep 21, 2009 at 3:28 PM, Malcolm MacKinnon wrote: > >> Hi, >> I'm new to Django. >> > I keep getting a 404 error when I try to pass a "prod&qu

Re: URL Parameter is not found, 404 error

2009-09-21 Thread Karen Tracey
On Mon, Sep 21, 2009 at 3:28 PM, Malcolm MacKinnon wrote: > Hi, > I'm new to Django. > I keep getting a 404 error when I try to pass a "prod" parameter to a url. > I think it is just this last parameter that is giving me trouble. > > Here is my error: > Page no

URL Parameter is not found, 404 error

2009-09-21 Thread Malcolm MacKinnon
Hi, I'm new to Django. I keep getting a 404 error when I try to pass a "prod" parameter to a url. I think it is just this last parameter that is giving me trouble. Here is my error: Page not found (404)Request Method:GETRequest URL: http://localhost/order_closeouts/imgs/WMS%20DI

URL Parameter is not found, 404 error

2009-09-21 Thread Malcolm MacKinnon
Hi, I'm new to Django. I keep getting a 404 error when I try to pass a "prod" parameter to a url. I think it is just this last parameter that is giving me trouble. Here is my error: Page not found (404)Request Method:GETRequest URL: http://localhost/order_closeouts/imgs/WMS%20DI

Re: 500 Errors on 404 error?

2009-06-16 Thread Wiiboy
Fixed. I had accidentally set handler404 to a blank string. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from

500 Errors on 404 error?

2009-06-16 Thread Wiiboy
I finally got Django to email me about 404 and 500 errors. To test it, I typed in a random path, that I knew would be a 404 error. However, I got an email, and an error page, about a 500 error. The email said the following: File "/home/schoo37/webapps/schoolgoo/lib/python2.5/django

Re: Strange 404 error in admin

2009-02-09 Thread Karen Tracey
On Mon, Feb 9, 2009 at 11:45 PM, Julien Phalip wrote: > > On Feb 10, 3:19 pm, Karen Tracey wrote: > > On Mon, Feb 9, 2009 at 4:17 PM, Julien Phalip wrote: > > > Hello again, > > > > > I finally fixed it with the following nasty hack: > > > > > class Entry(models.Model): > > >... some fi

Re: Strange 404 error in admin

2009-02-09 Thread Julien Phalip
On Feb 10, 3:19 pm, Karen Tracey wrote: > On Mon, Feb 9, 2009 at 4:17 PM, Julien Phalip wrote: > > Hello again, > > > I finally fixed it with the following nasty hack: > > > class Entry(models.Model): > >        ... some fields ... > > >         objects = models.Manager() # Nasty hack > >      

Re: Strange 404 error in admin

2009-02-09 Thread Karen Tracey
On Mon, Feb 9, 2009 at 4:17 PM, Julien Phalip wrote: > Hello again, > > I finally fixed it with the following nasty hack: > > class Entry(models.Model): >... some fields ... > > objects = models.Manager() # Nasty hack >published = PublishedEntryManager() > > It seems like

Re: Strange 404 error in admin

2009-02-09 Thread Julien Phalip
On Feb 10, 7:52 am, Julien Phalip wrote: > On Feb 10, 7:41 am, Alex Gaynor wrote: > > > I don't know what manager old forms admin used, but do you have a custom > > manager that blocks access to some objects. > > Thanks Alex for your reply. You've made a really good point which > helped me track

Re: Strange 404 error in admin

2009-02-09 Thread Julien Phalip
On Feb 10, 7:41 am, Alex Gaynor wrote: > I don't know what manager old forms admin used, but do you have a custom > manager that blocks access to some objects. Thanks Alex for your reply. You've made a really good point which helped me track this down. Here are the model and manager: class Publ

Re: Strange 404 error in admin

2009-02-09 Thread Alex Gaynor
On Mon, Feb 9, 2009 at 3:40 PM, Julien Phalip wrote: > > On Feb 9, 7:20 pm, Julien Phalip wrote: > > Hi, > > > > This is a strange case. I have a simple blog entry model which can be > > edited in the admin, from the URL that looks like: > http://www.example.com.au/admin/blog/entry/52/ > > > > N

Re: Strange 404 error in admin

2009-02-09 Thread Julien Phalip
On Feb 9, 7:20 pm, Julien Phalip wrote: > Hi, > > This is a strange case. I have a simple blog entry model which can be > edited in the admin, from the URL that looks > like:http://www.example.com.au/admin/blog/entry/52/ > > Now, what is strange is that the link above returns a 404. Same with >

Strange 404 error in admin

2009-02-09 Thread Julien Phalip
Hi, This is a strange case. I have a simple blog entry model which can be edited in the admin, from the URL that looks like: http://www.example.com.au/admin/blog/entry/52/ Now, what is strange is that the link above returns a 404. Same with the entry id=51. Yet, entries with id=51,52 do exist.

Django + Apache (FastCGI): how to spread 404 error

2008-11-29 Thread Alexey Moskvin
Hi, I am using Django + Apache (via FastCGI). I've made my own 404 page (404.html in templates dir) and turned debug mode off. When I'm requesting for non-existed page I see my custom error page, but in Apache's log there is something like this: "GET /authors/333.html HTTP/1.1" 200 368 "-" (the re

Re: 404 Error HTTP_FORBIDDEN

2008-11-12 Thread Brandon Martin
Sorry it was as usual a stupid me error. I didn't have the correct document root set in the main apache conf file. Thanks -- Brandon On Wed, 12 Nov 2008 11:05:14 -0800 (PST), Raja <[EMAIL PROTECTED]> wrote: > > Did you get this working fine in a dev environment? Id assume that > everything und

Re: 404 Error HTTP_FORBIDDEN

2008-11-12 Thread Raja
Did you get this working fine in a dev environment? Id assume that everything under ~user/public_html will have Apache Location directive setup for allowing access and that might not be the case for other directories. Testing this on a sandbox environment should help to know where the problem is (

404 Error HTTP_FORBIDDEN

2008-11-12 Thread Brandon Martin
I had everything running fine with my django setup and apache vhost. My project root dir was: /home/user/public_html/django/project I wanted to change the dir so I moved everything to: /srv/django/project I went into my vhost and changed the paths so they correspond to the new ro

Re: Apache & mod_python 404 error on page access

2008-04-03 Thread Evert Rol
> Okay, so whenever I request anything through my apache server I get a > 404 error. Here are my configuration files. > > Apache: > > DocumentRoot /home/chainsofheaven.net/html > ServerName chainsofheaven.net > ServerAlias *.chainsofheaven.net > > all

Re: Apache & mod_python 404 error on page access

2008-04-03 Thread Jared
I'm certainly no django expert, but have you checked the ownership and permissions on the html area you're trying to serve? On Apr 3, 5:13 pm, pieaholicx <[EMAIL PROTECTED]> wrote: > Okay, so whenever I request anything through my apache server I get a > 404 error. Her

Apache & mod_python 404 error on page access

2008-04-03 Thread pieaholicx
Okay, so whenever I request anything through my apache server I get a 404 error. Here are my configuration files. Apache: DocumentRoot /home/chainsofheaven.net/html ServerName chainsofheaven.net ServerAlias *.chainsofheaven.net allow from all Options +Indexes SetHandler python.program

Re: Admin section 404 error

2008-02-17 Thread Karen Tracey
On Feb 15, 2008 11:26 PM, Shadow <[EMAIL PROTECTED]> wrote: > > Error message: > > Using the URLconf defined in mysite.urls, Django tried these URL > patterns, in this order: > > 1. ^admin/ > > The current URL, my-site.com/admin, didn't match any of these. > The ^ at the beginning of the urlpat

  1   2   >