Ubuntu Türkiye

Yazılım => Python => Programlama => Django => Konuyu başlatan: Wougge - 20 Temmuz 2012 - 13:44:41

Başlık: [Çözüldü] Django Administration Paneli Hakkında
Gönderen: Wougge - 20 Temmuz 2012 - 13:44:41
trminale bu kondu yazıyorum
python manage.py runserver

daha sonra bu hatayı alıyorum
Page not found (404)
Request Method: GET
Request URL: http://127.0.0.1:8000/

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

    ^admin/

The current URL, , 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.

ne yapmam gerekiyor?
Başlık: Ynt: Django Administration Paneli Hakkında
Gönderen: sem - 20 Temmuz 2012 - 14:34:44
Sayfa bulunamadı alacaksınız yani DEBUG açık olsa da kapalı olsa da.

Bu sayafa ping attığnızda ne dönüyor?
Başlık: Ynt: Django Administration Paneli Hakkında
Gönderen: Wougge - 20 Temmuz 2012 - 16:43:24
ping için dönen kod:
ex@ubuntu:~/mysite$ ping -c3 127.0.0.1:8000
ping: unknown host 127.0.0.1:8000
ex@ubuntu:~/mysite$ ping -c3 127.0.0.1
PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data.
64 bytes from 127.0.0.1: icmp_req=1 ttl=64 time=0.049 ms
64 bytes from 127.0.0.1: icmp_req=2 ttl=64 time=0.051 ms
64 bytes from 127.0.0.1: icmp_req=3 ttl=64 time=0.052 ms

--- 127.0.0.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1999ms
rtt min/avg/max/mdev = 0.049/0.050/0.052/0.008 ms



Mesaj tekrarı yüzünden mesajınız birleştirildi. Bu mesajın gönderim tarihi : 20 Temmuz 2012 - 16:45:57

Terminal görünümü:
ex@ubuntu:~/mysite$ python manage.py runserver
Validating models...

0 errors found
Django version 1.4, using settings 'mysite.settings'
Development server is running at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
[20/Jul/2012 08:44:42] "GET / HTTP/1.1" 404 1894

web tarayıcısının görünümü :
Page not found (404)
Request Method: GET
Request URL: http://127.0.0.1:8000/

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

    ^admin/

The current URL, , 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.
Başlık: Ynt: [Çözüldü] Django Administration Paneli Hakkında
Gönderen: cagriemer - 20 Temmuz 2012 - 17:14:57
Cozuldu olarak isaretlemissiniz. Nasil cozuldugunu gecerseniz benzer sorunu yasayabilecekler icin iyi olur.
Başlık: Ynt: [Çözüldü] Django Administration Paneli Hakkında
Gönderen: Wougge - 21 Temmuz 2012 - 10:22:12
önceliklel tüm programları kaldırmak yerine ubuntuyu sildim tekrar yükledim.

sırası ile şu komutlari girdim.

sudo apt-get install mysql-server python-mysqldb
sudo apt-get install apache2
sudo apt-get install python3
Django-1.4 ü pythonla ilişkillendirdim.
python setup.py install

Django-1.4 ü python3le ilişkillendirdim.
python3 setup.py install

sorun çözülmüştür.