Apache2 installation

1 view
Skip to first unread message

Zeynel

unread,
Nov 12, 2009, 6:44:13 PM11/12/09
to Django users
Hello,

I've been trying to port my app to apache2 server from the django
development server. After trying all day, I now see the admin page but
I don't see my app. Hosting co is not helping because they say this is
"pure django."

Is there someone familiar with this process and could you point me to
the right document or help if you can.

I just copied the app directory to the apache server

~/webapps/django/sw1/wkw1

admin.py and urls.py are same.

I connect to the server with Putty and cd to

~/webapps/django/sw1

and run

python2.5 manage.py syncdb

then I cd to

~/webapps/django/apache2/bin

and

./restart

But this has no effect. I still see the standard admin without my app.

http://www.swimswith.com/admin/

Thanks!

Francois Verbeek

unread,
Nov 13, 2009, 3:43:22 AM11/13/09
to django...@googlegroups.com
http://www.swimswith.com/wkw1/ returns something (SwimsWith: A Legal Who-Knows-Who)... from the admin debug page, this is the only url defined in your urls.py.
so it looks like working fine, except if your urls.py contains something else, in which case, could you detail what?

Francois
--

You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=.


Zeynel

unread,
Nov 13, 2009, 8:07:08 AM11/13/09
to Django users
Yes, finally the support decided to install it. The process was a
nightmare. I don't know if this is the same with other hosting places.
The documentation was horrible and just outlining the process for
people who are experts, not for newbies. And now they installed the
project in 2 different directories: /home/zeynel/sw1 and /home/webapps/
django/sw1.

I kept changing the settings.py in /home/sw1 DEBUG = False, and
resetting the server, and nothing was happening. I found that I needed
to change the settings.py here: /home/webapps/django/sw1

So that's done and hopefully that removes the debug admin page, I
think this is what the django documentation advises.

I have a simple database in admin but I realized that to reach the
admin a username and pw is needed. I haven't figured how to translate
the functionality I have in admin (database, and search) to a public
webpage. If you can help I'd appreciate it.



On Nov 13, 3:43 am, Francois Verbeek <franc...@verbeek.name> wrote:
> http://www.swimswith.com/wkw1/returns something (SwimsWith: A Legal Who-Knows-Who)... from the admin debug page, this is the only url defined in your urls.py.

Mario

unread,
Nov 13, 2009, 10:31:55 AM11/13/09
to Django users
You need revisit your project urls.py and also verify your project
settings.py.

Does your urls.py somewhat resemble the following:

from django.conf.urls.defaults import *
from django.contrib import admin
from django_apps.blog.models import Post

urlpatterns = patterns('',
(r'^contact/', include('contact_form.urls')),
(r'^blog/', include('django_apps.blog.urls')),
(r'^admin/', include(admin.site.urls)),
)

Also make sure you read the http://docs.djangoproject.com/en/dev/intro/tutorial02/#intro-tutorial02

Cheers,

_Mario


On Nov 13, 8:07 am, Zeynel <azeyn...@gmail.com> wrote:
> Yes, finally the support decided to install it. The process was a
> nightmare. I don't know if this is the same with other hosting places.
> The documentation was horrible and just outlining the process for
> people who are experts, not for newbies. And now they installed the
> project in 2 different directories: /home/zeynel/sw1 and /home/webapps/
> django/sw1.
>
> I kept changing the settings.py in /home/sw1 DEBUG = False, and
> resetting the server, and nothing was happening. I found that I needed
> to change the settings.py here: /home/webapps/django/sw1
>
> So that's done and hopefully that removes the debug admin page, I
> think this is what the django documentation advises.
>
> I have a simple database in admin but I realized that to reach the
> admin a username and pw is needed. I haven't figured how to translate
> the functionality I have in admin (database, and search) to a public
> webpage. If you can help I'd appreciate it.
>
> On Nov 13, 3:43 am, Francois Verbeek <franc...@verbeek.name> wrote:
>
> >http://www.swimswith.com/wkw1/returnssomething (SwimsWith: A Legal Who-Knows-Who)... from the admin debug page, this is the only url defined in your urls.py.
Reply all
Reply to author
Forward
0 new messages