Re: Admin site not working properly using passenger on shared hosting. Need help setting it up properly

2018-12-12 Thread Theodore D
https://stackoverflow.com/a/50827230/1198074

On Wednesday, June 27, 2018 at 10:59:58 PM UTC+3, Pato wrote:
>
> Ahmed, 
>
> Did you manage to figure out what was the problem? I ran into the same 
> problem. All POST requests  are throwing Page not found (404)
> Request Method: POST
>
>
> Let me know 
>
> Thanks
>
>
> On Friday, March 2, 2018 at 7:19:10 AM UTC-5, Tanvir Ahmed wrote:
>>
>> Hello, 
>>
>> I am fairly new to the web hosting world. I recently purchased a plan at 
>> a2hosting. It's a shared hosting plan. After some problems with FastCGI, I 
>> was told to use passenger to host django. I couldn't find much on this 
>> topic and somehow managed to get the website working. However, soon I 
>> realized that the post forms weren't working. More importantly, the admin 
>> site wasn't working properly. I get to the admin site login but once I try 
>> to login, I get a page not found error. 
>>
>> I have contacted the hosting provider and they seem to think that my 
>> configuration with passenger is wrong. They were kind enough to offer to 
>> change any server side settings if needed. So any idea what I am doing 
>> wrong? Could you guys provide me the steps to get django working with 
>> passenger? Or is it some server side settings fault?
>>
>> Please note that I decided to get rid of everything and start fresh. I 
>> created a project by, first creating a virtualenv using CPanel's setup 
>> python app. This also creates a passenger_wsgi.py and a .htaccess file. I 
>> edited the passenger_wsgi.py to the following code: 
>> from projectname.wsgi import application 
>>
>> After that I configured the settings where I made changes to the allowed 
>> hosts and provided the static and media files and directories. Then I ran 
>> collectstatics and made migrations and created superuser. Then, (keep in 
>> mind I am using the project I just created and haven't changed anything or 
>> added any apps) I went to, www.example.com/admin and the login appeared. 
>> But, once I do try to login, I get a page not found error.
>>
>> The directory looks something like this: 
>>
>> root(/home/username)
>> -virtualenv
>> -website
>> -passenger_wsgi.py
>> -manage.py
>> -public
>> -tmp
>> -project
>> -__init__.py
>> -settings.py
>> -wsgi.py
>> -urls.py
>>
>> Please note: there are other files but I included the ones I thought were 
>> necessary.
>>
>> Thank you in advance and sorry for any inconveniences
>>
>

-- 
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, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/9dead6a2-92c8-4f7e-88aa-8d5b126b3e96%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Admin site not working properly using passenger on shared hosting. Need help setting it up properly

2018-06-27 Thread Pato
Ahmed, 

Did you manage to figure out what was the problem? I ran into the same 
problem. All POST requests  are throwing Page not found (404)
Request Method: POST


Let me know 

Thanks


On Friday, March 2, 2018 at 7:19:10 AM UTC-5, Tanvir Ahmed wrote:
>
> Hello, 
>
> I am fairly new to the web hosting world. I recently purchased a plan at 
> a2hosting. It's a shared hosting plan. After some problems with FastCGI, I 
> was told to use passenger to host django. I couldn't find much on this 
> topic and somehow managed to get the website working. However, soon I 
> realized that the post forms weren't working. More importantly, the admin 
> site wasn't working properly. I get to the admin site login but once I try 
> to login, I get a page not found error. 
>
> I have contacted the hosting provider and they seem to think that my 
> configuration with passenger is wrong. They were kind enough to offer to 
> change any server side settings if needed. So any idea what I am doing 
> wrong? Could you guys provide me the steps to get django working with 
> passenger? Or is it some server side settings fault?
>
> Please note that I decided to get rid of everything and start fresh. I 
> created a project by, first creating a virtualenv using CPanel's setup 
> python app. This also creates a passenger_wsgi.py and a .htaccess file. I 
> edited the passenger_wsgi.py to the following code: 
> from projectname.wsgi import application 
>
> After that I configured the settings where I made changes to the allowed 
> hosts and provided the static and media files and directories. Then I ran 
> collectstatics and made migrations and created superuser. Then, (keep in 
> mind I am using the project I just created and haven't changed anything or 
> added any apps) I went to, www.example.com/admin and the login appeared. 
> But, once I do try to login, I get a page not found error.
>
> The directory looks something like this: 
>
> root(/home/username)
> -virtualenv
> -website
> -passenger_wsgi.py
> -manage.py
> -public
> -tmp
> -project
> -__init__.py
> -settings.py
> -wsgi.py
> -urls.py
>
> Please note: there are other files but I included the ones I thought were 
> necessary.
>
> Thank you in advance and sorry for any inconveniences
>

-- 
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, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/19651712-8b5d-4a93-ad50-eab4daac474d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Admin site not working properly using passenger on shared hosting. Need help setting it up properly

2018-03-02 Thread team . readerspoint


On Friday, March 2, 2018 at 9:27:29 PM UTC+6, Vinicius Assef wrote:
>
> My bad. It's urls.py 
>
> On 2 March 2018 at 12:25, Vinicius Assef > 
> wrote: 
> > Probably you have a problem with route. 
> > 
> > Check your routes.py again. 
> > 
> > On 2 March 2018 at 10:28,  > wrote: 
> >> 
> >> 
> >> On Friday, March 2, 2018 at 6:24:49 PM UTC+6, Vinicius Assef wrote: 
> >>> 
> >>> Some time ago I wrote this post [0]  about setting Python and Django 
> >>> on Dreamhost. They use passenger. 
> >>> 
> >>> Maybe it's useful to you. 
> >>> 
> >>> 
> >>> [0] 
> >>> 
> http://aprenda-python.blogspot.com.br/2016/06/setup-python-with-django-or-pyramid-on-dreamhost.html
>  
> >>> 
> >> 
> >>> 
> >>> 
> >>> 
> >>> On 2 March 2018 at 04:56, Tanvir Ahmed  wrote: 
> >>> > Hello, 
> >>> > 
> >>> > I am fairly new to the web hosting world. I recently purchased a 
> plan at 
> >>> > a2hosting. It's a shared hosting plan. After some problems with 
> FastCGI, 
> >>> > I 
> >>> > was told to use passenger to host django. I couldn't find much on 
> this 
> >>> > topic 
> >>> > and somehow managed to get the website working. However, soon I 
> realized 
> >>> > that the post forms weren't working. More importantly, the admin 
> site 
> >>> > wasn't 
> >>> > working properly. I get to the admin site login but once I try to 
> login, 
> >>> > I 
> >>> > get a page not found error. 
> >>> > 
> >>> > I have contacted the hosting provider and they seem to think that my 
> >>> > configuration with passenger is wrong. They were kind enough to 
> offer to 
> >>> > change any server side settings if needed. So any idea what I am 
> doing 
> >>> > wrong? Could you guys provide me the steps to get django working 
> with 
> >>> > passenger? Or is it some server side settings fault? 
> >>> > 
> >>> > Please note that I decided to get rid of everything and start fresh. 
> I 
> >>> > created a project by, first creating a virtualenv using CPanel's 
> setup 
> >>> > python app. This also creates a passenger_wsgi.py and a .htaccess 
> file. 
> >>> > I 
> >>> > edited the passenger_wsgi.py to the following code: 
> >>> > from projectname.wsgi import application 
> >>> > 
> >>> > After that I configured the settings where I made changes to the 
> allowed 
> >>> > hosts and provided the static and media files and directories. Then 
> I 
> >>> > ran 
> >>> > collectstatics and made migrations and created superuser. Then, 
> (keep in 
> >>> > mind I am using the project I just created and haven't changed 
> anything 
> >>> > or 
> >>> > added any apps) I went to, www.example.com/admin and the login 
> appeared. 
> >>> > But, once I do try to login, I get a page not found error. 
> >>> > 
> >>> > The directory looks something like this: 
> >>> > 
> >>> > root(/home/username) 
> >>> > -virtualenv 
> >>> > -website 
> >>> > -passenger_wsgi.py 
> >>> > -manage.py 
> >>> > -public 
> >>> > -tmp 
> >>> > -project 
> >>> > -__init__.py 
> >>> > -settings.py 
> >>> > -wsgi.py 
> >>> > -urls.py 
> >>> > 
> >>> > Please note: there are other files but I included the ones I thought 
> >>> > were 
> >>> > necessary. 
> >>> > 
> >>> > Thank you in advance and sorry for any inconveniences 
> >>> > 
> >>> > -- 
> >>> > 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, 
> send 
> >>> > an 
> >>> > email to django-users...@googlegroups.com. 
> >>> > To post to this group, send email to django...@googlegroups.com. 
> >>> > Visit this group at https://groups.google.com/group/django-users. 
> >>> > To view this discussion on the web visit 
> >>> > 
> >>> > 
> https://groups.google.com/d/msgid/django-users/CAOe4Nxf_ux%2B9xN1f1Vn0qNN4%2Bi%3DU%2BBsfNy2oAEmgyUV39Pc-Kw%40mail.gmail.com.
>  
>
> >>> > For more options, visit https://groups.google.com/d/optout. 
> >> 
> >> 
> >> Hello, 
> >> 
> >> Just followed the tutorial you have provided. The website is up and I 
> do get 
> >> the welcome page. I also do get the admin login site. However, as I try 
> to 
> >> login in with one of the superuser I have created, I get a page not 
> found 
> >> error. 
> >> 
> >> Page not found (404) 
> >> 
> >> 
> >> Request Method: POST 
> >> 
> >> Request URL: https://www.website.com/admin/login/?next=/admin/ 
> >> 
> >> Raised by: django.contrib.admin.sites.login 
> >> 
> >> 
> >> Using the URLconf defined in readerspoint.urls, Django tried these URL 
> >> patterns, in this order: 
> >> 
> >> 
> >> 1) admin/ 
> >> 
> >> 
> >> The empty path didn't match any of these. 
> >> 
> >> You're seeing this error because you have DEBUG = True in your Django 
> >> settings file. Change that to False, and Django will display a standard 
> 404 
> >> page. 
> >> 
> >> 
> >> This is what the error looks like. 
> >>> 
> >>> 
> >> 
> >> -- 
> >> You received this message beca

Re: Admin site not working properly using passenger on shared hosting. Need help setting it up properly

2018-03-02 Thread Vinicius Assef
My bad. It's urls.py

On 2 March 2018 at 12:25, Vinicius Assef  wrote:
> Probably you have a problem with route.
>
> Check your routes.py again.
>
> On 2 March 2018 at 10:28,   wrote:
>>
>>
>> On Friday, March 2, 2018 at 6:24:49 PM UTC+6, Vinicius Assef wrote:
>>>
>>> Some time ago I wrote this post [0]  about setting Python and Django
>>> on Dreamhost. They use passenger.
>>>
>>> Maybe it's useful to you.
>>>
>>>
>>> [0]
>>> http://aprenda-python.blogspot.com.br/2016/06/setup-python-with-django-or-pyramid-on-dreamhost.html
>>>
>>
>>>
>>>
>>>
>>> On 2 March 2018 at 04:56, Tanvir Ahmed  wrote:
>>> > Hello,
>>> >
>>> > I am fairly new to the web hosting world. I recently purchased a plan at
>>> > a2hosting. It's a shared hosting plan. After some problems with FastCGI,
>>> > I
>>> > was told to use passenger to host django. I couldn't find much on this
>>> > topic
>>> > and somehow managed to get the website working. However, soon I realized
>>> > that the post forms weren't working. More importantly, the admin site
>>> > wasn't
>>> > working properly. I get to the admin site login but once I try to login,
>>> > I
>>> > get a page not found error.
>>> >
>>> > I have contacted the hosting provider and they seem to think that my
>>> > configuration with passenger is wrong. They were kind enough to offer to
>>> > change any server side settings if needed. So any idea what I am doing
>>> > wrong? Could you guys provide me the steps to get django working with
>>> > passenger? Or is it some server side settings fault?
>>> >
>>> > Please note that I decided to get rid of everything and start fresh. I
>>> > created a project by, first creating a virtualenv using CPanel's setup
>>> > python app. This also creates a passenger_wsgi.py and a .htaccess file.
>>> > I
>>> > edited the passenger_wsgi.py to the following code:
>>> > from projectname.wsgi import application
>>> >
>>> > After that I configured the settings where I made changes to the allowed
>>> > hosts and provided the static and media files and directories. Then I
>>> > ran
>>> > collectstatics and made migrations and created superuser. Then, (keep in
>>> > mind I am using the project I just created and haven't changed anything
>>> > or
>>> > added any apps) I went to, www.example.com/admin and the login appeared.
>>> > But, once I do try to login, I get a page not found error.
>>> >
>>> > The directory looks something like this:
>>> >
>>> > root(/home/username)
>>> > -virtualenv
>>> > -website
>>> > -passenger_wsgi.py
>>> > -manage.py
>>> > -public
>>> > -tmp
>>> > -project
>>> > -__init__.py
>>> > -settings.py
>>> > -wsgi.py
>>> > -urls.py
>>> >
>>> > Please note: there are other files but I included the ones I thought
>>> > were
>>> > necessary.
>>> >
>>> > Thank you in advance and sorry for any inconveniences
>>> >
>>> > --
>>> > 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, send
>>> > an
>>> > email to django-users...@googlegroups.com.
>>> > To post to this group, send email to django...@googlegroups.com.
>>> > Visit this group at https://groups.google.com/group/django-users.
>>> > To view this discussion on the web visit
>>> >
>>> > https://groups.google.com/d/msgid/django-users/CAOe4Nxf_ux%2B9xN1f1Vn0qNN4%2Bi%3DU%2BBsfNy2oAEmgyUV39Pc-Kw%40mail.gmail.com.
>>> > For more options, visit https://groups.google.com/d/optout.
>>
>>
>> Hello,
>>
>> Just followed the tutorial you have provided. The website is up and I do get
>> the welcome page. I also do get the admin login site. However, as I try to
>> login in with one of the superuser I have created, I get a page not found
>> error.
>>
>> Page not found (404)
>>
>>
>> Request Method: POST
>>
>> Request URL: https://www.website.com/admin/login/?next=/admin/
>>
>> Raised by: django.contrib.admin.sites.login
>>
>>
>> Using the URLconf defined in readerspoint.urls, Django tried these URL
>> patterns, in this order:
>>
>>
>> 1) admin/
>>
>>
>> The empty path didn't match any of these.
>>
>> You're seeing this error because you have DEBUG = True in your Django
>> settings file. Change that to False, and Django will display a standard 404
>> page.
>>
>>
>> This is what the error looks like.
>>>
>>>
>>
>> --
>> 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, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/0b59e202-8ce2-4d42-9d99-e217864b791d%40googlegroups.com.
>>
>> For more options, visit https://groups.google.com/d/optout.


Re: Admin site not working properly using passenger on shared hosting. Need help setting it up properly

2018-03-02 Thread Vinicius Assef
Probably you have a problem with route.

Check your routes.py again.

On 2 March 2018 at 10:28,   wrote:
>
>
> On Friday, March 2, 2018 at 6:24:49 PM UTC+6, Vinicius Assef wrote:
>>
>> Some time ago I wrote this post [0]  about setting Python and Django
>> on Dreamhost. They use passenger.
>>
>> Maybe it's useful to you.
>>
>>
>> [0]
>> http://aprenda-python.blogspot.com.br/2016/06/setup-python-with-django-or-pyramid-on-dreamhost.html
>>
>
>>
>>
>>
>> On 2 March 2018 at 04:56, Tanvir Ahmed  wrote:
>> > Hello,
>> >
>> > I am fairly new to the web hosting world. I recently purchased a plan at
>> > a2hosting. It's a shared hosting plan. After some problems with FastCGI,
>> > I
>> > was told to use passenger to host django. I couldn't find much on this
>> > topic
>> > and somehow managed to get the website working. However, soon I realized
>> > that the post forms weren't working. More importantly, the admin site
>> > wasn't
>> > working properly. I get to the admin site login but once I try to login,
>> > I
>> > get a page not found error.
>> >
>> > I have contacted the hosting provider and they seem to think that my
>> > configuration with passenger is wrong. They were kind enough to offer to
>> > change any server side settings if needed. So any idea what I am doing
>> > wrong? Could you guys provide me the steps to get django working with
>> > passenger? Or is it some server side settings fault?
>> >
>> > Please note that I decided to get rid of everything and start fresh. I
>> > created a project by, first creating a virtualenv using CPanel's setup
>> > python app. This also creates a passenger_wsgi.py and a .htaccess file.
>> > I
>> > edited the passenger_wsgi.py to the following code:
>> > from projectname.wsgi import application
>> >
>> > After that I configured the settings where I made changes to the allowed
>> > hosts and provided the static and media files and directories. Then I
>> > ran
>> > collectstatics and made migrations and created superuser. Then, (keep in
>> > mind I am using the project I just created and haven't changed anything
>> > or
>> > added any apps) I went to, www.example.com/admin and the login appeared.
>> > But, once I do try to login, I get a page not found error.
>> >
>> > The directory looks something like this:
>> >
>> > root(/home/username)
>> > -virtualenv
>> > -website
>> > -passenger_wsgi.py
>> > -manage.py
>> > -public
>> > -tmp
>> > -project
>> > -__init__.py
>> > -settings.py
>> > -wsgi.py
>> > -urls.py
>> >
>> > Please note: there are other files but I included the ones I thought
>> > were
>> > necessary.
>> >
>> > Thank you in advance and sorry for any inconveniences
>> >
>> > --
>> > 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, send
>> > an
>> > email to django-users...@googlegroups.com.
>> > To post to this group, send email to django...@googlegroups.com.
>> > Visit this group at https://groups.google.com/group/django-users.
>> > To view this discussion on the web visit
>> >
>> > https://groups.google.com/d/msgid/django-users/CAOe4Nxf_ux%2B9xN1f1Vn0qNN4%2Bi%3DU%2BBsfNy2oAEmgyUV39Pc-Kw%40mail.gmail.com.
>> > For more options, visit https://groups.google.com/d/optout.
>
>
> Hello,
>
> Just followed the tutorial you have provided. The website is up and I do get
> the welcome page. I also do get the admin login site. However, as I try to
> login in with one of the superuser I have created, I get a page not found
> error.
>
> Page not found (404)
>
>
> Request Method: POST
>
> Request URL: https://www.website.com/admin/login/?next=/admin/
>
> Raised by: django.contrib.admin.sites.login
>
>
> Using the URLconf defined in readerspoint.urls, Django tried these URL
> patterns, in this order:
>
>
> 1) admin/
>
>
> The empty path didn't match any of these.
>
> You're seeing this error because you have DEBUG = True in your Django
> settings file. Change that to False, and Django will display a standard 404
> page.
>
>
> This is what the error looks like.
>>
>>
>
> --
> 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, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/0b59e202-8ce2-4d42-9d99-e217864b791d%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.

-- 
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, send an email 
to django-users+unsubscr...@googl

Re: Admin site not working properly using passenger on shared hosting. Need help setting it up properly

2018-03-02 Thread team . readerspoint


On Friday, March 2, 2018 at 6:24:49 PM UTC+6, Vinicius Assef wrote:
>
> Some time ago I wrote this post [0]  about setting Python and Django 
> on Dreamhost. They use passenger. 
>
> Maybe it's useful to you. 
>
>
> [0] 
> http://aprenda-python.blogspot.com.br/2016/06/setup-python-with-django-or-pyramid-on-dreamhost.html
>  
>
>  

>
>
> On 2 March 2018 at 04:56, Tanvir Ahmed  > wrote: 
> > Hello, 
> > 
> > I am fairly new to the web hosting world. I recently purchased a plan at 
> > a2hosting. It's a shared hosting plan. After some problems with FastCGI, 
> I 
> > was told to use passenger to host django. I couldn't find much on this 
> topic 
> > and somehow managed to get the website working. However, soon I realized 
> > that the post forms weren't working. More importantly, the admin site 
> wasn't 
> > working properly. I get to the admin site login but once I try to login, 
> I 
> > get a page not found error. 
> > 
> > I have contacted the hosting provider and they seem to think that my 
> > configuration with passenger is wrong. They were kind enough to offer to 
> > change any server side settings if needed. So any idea what I am doing 
> > wrong? Could you guys provide me the steps to get django working with 
> > passenger? Or is it some server side settings fault? 
> > 
> > Please note that I decided to get rid of everything and start fresh. I 
> > created a project by, first creating a virtualenv using CPanel's setup 
> > python app. This also creates a passenger_wsgi.py and a .htaccess file. 
> I 
> > edited the passenger_wsgi.py to the following code: 
> > from projectname.wsgi import application 
> > 
> > After that I configured the settings where I made changes to the allowed 
> > hosts and provided the static and media files and directories. Then I 
> ran 
> > collectstatics and made migrations and created superuser. Then, (keep in 
> > mind I am using the project I just created and haven't changed anything 
> or 
> > added any apps) I went to, www.example.com/admin and the login 
> appeared. 
> > But, once I do try to login, I get a page not found error. 
> > 
> > The directory looks something like this: 
> > 
> > root(/home/username) 
> > -virtualenv 
> > -website 
> > -passenger_wsgi.py 
> > -manage.py 
> > -public 
> > -tmp 
> > -project 
> > -__init__.py 
> > -settings.py 
> > -wsgi.py 
> > -urls.py 
> > 
> > Please note: there are other files but I included the ones I thought 
> were 
> > necessary. 
> > 
> > Thank you in advance and sorry for any inconveniences 
> > 
> > -- 
> > 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, send 
> an 
> > email to django-users...@googlegroups.com . 
> > To post to this group, send email to django...@googlegroups.com 
> . 
> > Visit this group at https://groups.google.com/group/django-users. 
> > To view this discussion on the web visit 
> > 
> https://groups.google.com/d/msgid/django-users/CAOe4Nxf_ux%2B9xN1f1Vn0qNN4%2Bi%3DU%2BBsfNy2oAEmgyUV39Pc-Kw%40mail.gmail.com.
>  
>
> > For more options, visit https://groups.google.com/d/optout. 


Hello, 

Just followed the tutorial you have provided. The website is up and I do 
get the welcome page. I also do get the admin login site. However, as I try 
to login in with one of the superuser I have created, I get a page not 
found error. 

*Page not found (404)*


*Request Method: POST*

*Request URL: https://www.website.com/admin/login/?next=/admin/ 
*

*Raised by: django.contrib.admin.sites.login*


*Using the URLconf defined in readerspoint.urls, Django tried these URL 
patterns, in this order:*


*1) admin/*


*The empty path didn't match any of these.*

*You're seeing this error because you have DEBUG = True in your Django 
settings file. Change that to False, and Django will display a standard 404 
page.*


This is what the error looks like.

>  

-- 
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, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/0b59e202-8ce2-4d42-9d99-e217864b791d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Admin site not working properly using passenger on shared hosting. Need help setting it up properly

2018-03-02 Thread emepe
On Friday, March 2, 2018 at 9:19:10 AM UTC-3, Tanvir Ahmed wrote:
>
> I am fairly new to the web hosting world. I recently purchased a plan at 
> a2hosting. It's a shared hosting plan. After some problems with FastCGI, I 
> was told to use passenger to host django. I couldn't find much on this 
> topic and somehow managed to get the website working. However, soon I 
> realized that the post forms weren't working. More importantly, the admin 
> site wasn't working properly. I get to the admin site login but once I try 
> to login, I get a page not found error. 
>

For simple websites I might recommend using Webfaction. It is really easy 
and fast to have a site with Django and has a lot of support for Django 
sites.

- Ezequiel
https://flickrock.com/mikelpierre

-- 
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, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/44cf118f-912b-4804-b57b-3e3bae76d936%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Admin site not working properly using passenger on shared hosting. Need help setting it up properly

2018-03-02 Thread emepe

On Friday, March 2, 2018 at 9:19:10 AM UTC-3, Tanvir Ahmed wrote:
>
> I am fairly new to the web hosting world. I recently purchased a plan at 
> a2hosting. It's a shared hosting plan. After some problems with FastCGI, I 
> was told to use passenger to host django. I couldn't find much on this 
> topic and somehow managed to get the website working. However, soon I 
> realized that the post forms weren't working. More importantly, the admin 
> site wasn't working properly. I get to the admin site login but once I try 
> to login, I get a page not found error. 
>

Para websites sencillos podría recomendar usar Webfaction.  Es realmente 
fácil y rápido tener un sitio con Django y tiene mucho soporte para sitios 
Django.

- Ezequiel
http://flickrock.com/mikelpierre 

-- 
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, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/4cbd86d3-6795-4eea-b969-1accdc1c2b37%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Admin site not working properly using passenger on shared hosting. Need help setting it up properly

2018-03-02 Thread Vinicius Assef
Some time ago I wrote this post [0]  about setting Python and Django
on Dreamhost. They use passenger.

Maybe it's useful to you.


[0] 
http://aprenda-python.blogspot.com.br/2016/06/setup-python-with-django-or-pyramid-on-dreamhost.html



On 2 March 2018 at 04:56, Tanvir Ahmed  wrote:
> Hello,
>
> I am fairly new to the web hosting world. I recently purchased a plan at
> a2hosting. It's a shared hosting plan. After some problems with FastCGI, I
> was told to use passenger to host django. I couldn't find much on this topic
> and somehow managed to get the website working. However, soon I realized
> that the post forms weren't working. More importantly, the admin site wasn't
> working properly. I get to the admin site login but once I try to login, I
> get a page not found error.
>
> I have contacted the hosting provider and they seem to think that my
> configuration with passenger is wrong. They were kind enough to offer to
> change any server side settings if needed. So any idea what I am doing
> wrong? Could you guys provide me the steps to get django working with
> passenger? Or is it some server side settings fault?
>
> Please note that I decided to get rid of everything and start fresh. I
> created a project by, first creating a virtualenv using CPanel's setup
> python app. This also creates a passenger_wsgi.py and a .htaccess file. I
> edited the passenger_wsgi.py to the following code:
> from projectname.wsgi import application
>
> After that I configured the settings where I made changes to the allowed
> hosts and provided the static and media files and directories. Then I ran
> collectstatics and made migrations and created superuser. Then, (keep in
> mind I am using the project I just created and haven't changed anything or
> added any apps) I went to, www.example.com/admin and the login appeared.
> But, once I do try to login, I get a page not found error.
>
> The directory looks something like this:
>
> root(/home/username)
> -virtualenv
> -website
> -passenger_wsgi.py
> -manage.py
> -public
> -tmp
> -project
> -__init__.py
> -settings.py
> -wsgi.py
> -urls.py
>
> Please note: there are other files but I included the ones I thought were
> necessary.
>
> Thank you in advance and sorry for any inconveniences
>
> --
> 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, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAOe4Nxf_ux%2B9xN1f1Vn0qNN4%2Bi%3DU%2BBsfNy2oAEmgyUV39Pc-Kw%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFmXjSADGMPzkwvPA-aDtV7y6%2B3VtrG6wFPK2Oh2RjHu7BTpDg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Admin site not working properly using passenger on shared hosting. Need help setting it up properly

2018-03-02 Thread Tanvir Ahmed
Hello,

I am fairly new to the web hosting world. I recently purchased a plan at
a2hosting. It's a shared hosting plan. After some problems with FastCGI, I
was told to use passenger to host django. I couldn't find much on this
topic and somehow managed to get the website working. However, soon I
realized that the post forms weren't working. More importantly, the admin
site wasn't working properly. I get to the admin site login but once I try
to login, I get a page not found error.

I have contacted the hosting provider and they seem to think that my
configuration with passenger is wrong. They were kind enough to offer to
change any server side settings if needed. So any idea what I am doing
wrong? Could you guys provide me the steps to get django working with
passenger? Or is it some server side settings fault?

Please note that I decided to get rid of everything and start fresh. I
created a project by, first creating a virtualenv using CPanel's setup
python app. This also creates a passenger_wsgi.py and a .htaccess file. I
edited the passenger_wsgi.py to the following code:
from projectname.wsgi import application

After that I configured the settings where I made changes to the allowed
hosts and provided the static and media files and directories. Then I ran
collectstatics and made migrations and created superuser. Then, (keep in
mind I am using the project I just created and haven't changed anything or
added any apps) I went to, www.example.com/admin and the login appeared.
But, once I do try to login, I get a page not found error.

The directory looks something like this:

root(/home/username)
-virtualenv
-website
-passenger_wsgi.py
-manage.py
-public
-tmp
-project
-__init__.py
-settings.py
-wsgi.py
-urls.py

Please note: there are other files but I included the ones I thought were
necessary.

Thank you in advance and sorry for any inconveniences

-- 
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, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAOe4Nxf_ux%2B9xN1f1Vn0qNN4%2Bi%3DU%2BBsfNy2oAEmgyUV39Pc-Kw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.