jantgo yu kurdum hata veriyor

Başlatan nazim, 16 Aralık 2009 - 12:51:34

« önceki - sonraki »

0 Üyeler ve 2 Ziyaretçi konuyu incelemekte.

nazim

http://localhost:8000/

şu çıktıyı veriyor.
IndentationError at /
('unexpected indent', ('/home/levent/Masaxc3xbcstxc3xbc/test/deneme/../deneme/urls.py', 4, 3, '   from django.contrib import admin
'))Request Method: GET
Request URL: http://localhost:8000/
Exception Type: IndentationError
Exception Value: ('unexpected indent', ('/home/levent/Masaxc3xbcstxc3xbc/test/deneme/../deneme/urls.py', 4, 3, '   from django.contrib import admin
'))
Exception Location: /var/lib/python-support/python2.6/django/core/urlresolvers.py in _get_urlconf_module, line 198
Python Executable: /usr/bin/python
Python Version: 2.6.2
Python Path: ['/home/levent/Masaxc3xbcstxc3xbc/test/deneme', '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload', '/usr/lib/python2.6/dist-packages', '/usr/lib/python2.6/dist-packages/PIL', '/usr/lib/python2.6/dist-packages/gst-0.10', '/var/lib/python-support/python2.6', '/usr/lib/python2.6/dist-packages/gtk-2.0', '/var/lib/python-support/python2.6/gtk-2.0', '/usr/local/lib/python2.6/dist-packages']
Server time: Çrş, 16 Ara 2009 04:54:04 -0600

Traceback Switch to copy-and-paste view
/var/lib/python-support/python2.6/django/core/handlers/base.py in get_response
...
                    request.path_info) ...
▶ Local vars
/var/lib/python-support/python2.6/django/core/urlresolvers.py in resolve
...
            for pattern in self.urlconf_module.urlpatterns: ...
▶ Local vars
/var/lib/python-support/python2.6/django/core/urlresolvers.py in _get_urlconf_module
...
            self._urlconf_module = __import__(self.urlconf_name, {}, {}, ['']) ...
▶ Local vars
Request information
GET

No GET data
POST

No POST data
COOKIESVariable Value
__utma '111872281.2002754185.1260899883.1260899883.1260901398.2'
__utmz '111872281.1260899883.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)'

METAVariable Value
COLORTERM 'gnome-terminal'
CONTENT_LENGTH ''
CONTENT_TYPE 'text/plain'
DBUS_SESSION_BUS_ADDRESS 'unix:abstract=/tmp/dbus-38L1cDwkHq,guid=f338adea36e3ada32d23ddc54b28b355'
DESKTOP_SESSION 'default.desktop'
DISPLAY ':0.0'
DJANGO_SETTINGS_MODULE 'deneme.settings'
GATEWAY_INTERFACE 'CGI/1.1'
GDMSESSION 'default.desktop'
GDM_LANG 'tr_TR.UTF-8'
GDM_XSERVER_LOCATION 'local'
GNOME_DESKTOP_SESSION_ID 'this-is-deprecated'
GNOME_KEYRING_SOCKET '/tmp/keyring-VdzrgI/socket'
GPG_AGENT_INFO '/tmp/seahorse-LCRqXB/S.gpg-agent:3501:1'
GTK_MODULES 'canberra-gtk-module'
GTK_RC_FILES '/etc/gtk/gtkrc:/home/levent/.gtkrc-1.2-gnome2'
HISTCONTROL 'ignoreboth'
HOME '/home/levent'
HTTP_ACCEPT 'text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1'
HTTP_ACCEPT_CHARSET 'iso-8859-1, utf-8, utf-16, *;q=0.1'
HTTP_ACCEPT_ENCODING 'deflate, gzip, x-gzip, identity, *;q=0'
HTTP_ACCEPT_LANGUAGE 'tr-TR,tr;q=0.9,en;q=0.8'
HTTP_CONNECTION 'Keep-Alive'
HTTP_COOKIE '__utmz=111872281.1260899883.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=111872281.2002754185.1260899883.1260899883.1260901398.2'
HTTP_COOKIE2 '$Version=1'
HTTP_HOST 'localhost:8000'
HTTP_USER_AGENT 'Opera/9.80 (X11; Linux x86_64; U; tr) Presto/2.2.15 Version/10.00'
LANG 'tr_TR.UTF-8'
LESSCLOSE '/usr/bin/lesspipe %s %s'
LESSOPEN '| /usr/bin/lesspipe %s'
LOGNAME 'levent'
LS_COLORS 'no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.svgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:'
OLDPWD '/home/levent/Masaxc3xbcstxc3xbc/test'
ORBIT_SOCKETDIR '/tmp/orbit-levent'
PATH '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games'
PATH_INFO u'/'
PWD '/home/levent/Masaxc3xbcstxc3xbc/test/deneme'
QUERY_STRING ''
REMOTE_ADDR '127.0.0.1'
REMOTE_HOST ''
REQUEST_METHOD 'GET'
RUN_MAIN 'true'
SCRIPT_NAME u''
SERVER_NAME 'localhost'
SERVER_PORT '8000'
SERVER_PROTOCOL 'HTTP/1.1'
SERVER_SOFTWARE 'WSGIServer/0.1 Python/2.6.2'
SESSION_MANAGER 'local/levent:/tmp/.ICE-unix/3146'
SHELL '/bin/bash'
SHLVL '1'
SSH_AGENT_PID '3342'
SSH_AUTH_SOCK '/tmp/keyring-VdzrgI/socket.ssh'
TERM 'xterm'
TZ 'America/Chicago'
USER 'levent'
USERNAME 'levent'
WINDOWID '54526006'
WINDOWPATH '7'
XAUTHORITY '/home/levent/.Xauthority'
XDG_DATA_DIRS '/usr/local/share/:/usr/share/:/usr/share/gdm/'
XDG_SESSION_COOKIE '7996813de4db8555e5aae1c24af15b36-1260958547.878114-2092877123'
_ '/usr/bin/python'
wsgi.errors <open file '<stderr>', mode 'w' at 0x7f791ac23140>
wsgi.file_wrapper <class 'django.core.servers.basehttp.FileWrapper'>
wsgi.input <socket._fileobject object at 0x7f7914158b90>
wsgi.multiprocess False
wsgi.multithread True
wsgi.run_once False
wsgi.url_scheme 'http'
wsgi.version (1, 0)

Settings
Using settings module deneme.settingsSetting Value
ABSOLUTE_URL_OVERRIDES {}
ADMINS ()
ADMIN_FOR ()
ADMIN_MEDIA_PREFIX '/media/'
ALLOWED_INCLUDE_ROOTS ()
APPEND_SLASH True
AUTHENTICATION_BACKENDS ('django.contrib.auth.backends.ModelBackend',)
BANNED_IPS ()
CACHE_BACKEND 'locmem://'
CACHE_MIDDLEWARE_KEY_PREFIX ''
CACHE_MIDDLEWARE_SECONDS 600
COMMENTS_ALLOW_PROFANITIES False
COMMENTS_BANNED_USERS_GROUP None
COMMENTS_FIRST_FEW 0
COMMENTS_MODERATORS_GROUP None
COMMENTS_SKETCHY_USERS_GROUP None
DATABASE_ENGINE 'sqlite3'
DATABASE_HOST ''
DATABASE_NAME 'deneme.db'
DATABASE_OPTIONS {}
DATABASE_PASSWORD '********************'
DATABASE_PORT ''
DATABASE_USER ''
DATETIME_FORMAT 'N j, Y, P'
DATE_FORMAT 'N j, Y'
DEBUG True
DEBUG_PROPAGATE_EXCEPTIONS False
DEFAULT_CHARSET 'utf-8'
DEFAULT_CONTENT_TYPE 'text/html'
DEFAULT_FILE_STORAGE 'django.core.files.storage.FileSystemStorage'
DEFAULT_FROM_EMAIL 'webmaster@localhost'
DEFAULT_INDEX_TABLESPACE ''
DEFAULT_TABLESPACE ''
DISALLOWED_USER_AGENTS ()
EMAIL_HOST 'localhost'
EMAIL_HOST_PASSWORD '********************'
EMAIL_HOST_USER ''
EMAIL_PORT 25
EMAIL_SUBJECT_PREFIX '[Django] '
EMAIL_USE_TLS False
FILE_CHARSET 'utf-8'
FILE_UPLOAD_HANDLERS ('django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler')
FILE_UPLOAD_MAX_MEMORY_SIZE 2621440
FILE_UPLOAD_PERMISSIONS None
FILE_UPLOAD_TEMP_DIR None
FIXTURE_DIRS ()
FORCE_SCRIPT_NAME None
IGNORABLE_404_ENDS ('mail.pl', 'mailform.pl', 'mail.cgi', 'mailform.cgi', 'favicon.ico', '.php')
IGNORABLE_404_STARTS ('/cgi-bin/', '/_vti_bin', '/_vti_inf')
INSTALLED_APPS ['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.admin']
INTERNAL_IPS ()
JING_PATH '/usr/bin/jing'
LANGUAGES (('ar', 'Arabic'), ('bn', 'Bengali'), ('bg', 'Bulgarian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('es', 'Spanish'), ('et', 'Estonian'), ('es-ar', 'Argentinean Spanish'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('ga', 'Irish'), ('gl', 'Galician'), ('hu', 'Hungarian'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('ko', 'Korean'), ('km', 'Khmer'), ('kn', 'Kannada'), ('lv', 'Latvian'), ('lt', 'Lithuanian'), ('mk', 'Macedonian'), ('nl', 'Dutch'), ('no', 'Norwegian'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sr', 'Serbian'), ('sv', 'Swedish'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('uk', 'Ukrainian'), ('zh-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese'))
LANGUAGES_BIDI ('he', 'ar', 'fa')
LANGUAGE_CODE 'tr-tr'
LANGUAGE_COOKIE_NAME 'django_language'
LOCALE_PATHS ()
LOGIN_REDIRECT_URL '/accounts/profile/'
LOGIN_URL '/accounts/login/'
LOGOUT_URL '/accounts/logout/'
MANAGERS ()
MEDIA_ROOT ''
MEDIA_URL ''
MIDDLEWARE_CLASSES ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware')
MONTH_DAY_FORMAT 'F j'
PASSWORD_RESET_TIMEOUT_DAYS '********************'
PREPEND_WWW False
PROFANITIES_LIST '********************'
ROOT_URLCONF 'deneme.urls'
SECRET_KEY '********************'
SEND_BROKEN_LINK_EMAILS False
SERVER_EMAIL 'root@localhost'
SESSION_COOKIE_AGE 1209600
SESSION_COOKIE_DOMAIN None
SESSION_COOKIE_NAME 'sessionid'
SESSION_COOKIE_PATH '/'
SESSION_COOKIE_SECURE False
SESSION_ENGINE 'django.contrib.sessions.backends.db'
SESSION_EXPIRE_AT_BROWSER_CLOSE False
SESSION_FILE_PATH None
SESSION_SAVE_EVERY_REQUEST False
SETTINGS_MODULE 'deneme.settings'
SITE_ID 1
TEMPLATE_CONTEXT_PROCESSORS ('django.core.context_processors.auth', 'django.core.context_processors.debug', 'django.core.context_processors.i18n', 'django.core.context_processors.media')
TEMPLATE_DEBUG True
TEMPLATE_DIRS ()
TEMPLATE_LOADERS ('django.template.loaders.filesystem.load_template_source', 'django.template.loaders.app_directories.load_template_source')
TEMPLATE_STRING_IF_INVALID ''
TEST_DATABASE_CHARSET None
TEST_DATABASE_COLLATION None
TEST_DATABASE_NAME None
TEST_RUNNER 'django.test.simple.run_tests'
TIME_FORMAT 'P'
TIME_ZONE 'America/Chicago'
TRANSACTIONS_MANAGED False
URL_VALIDATOR_USER_AGENT 'Django/1.0.2 final (http://www.djangoproject.com)'
USE_ETAGS False
USE_I18N True
YEAR_MONTH_FORMAT 'F Y'



Mesaj tekrarı yüzünden mesajınız birleştirildi. Bu mesajın gönderim tarihi : 16 Aralık 2009 - 12:54:04

Django mu  php mi.
ne dersiniz ikisinden birini iyi bir şekilde öğrenmem lağzım.
sizçe ?

raspacı

Urls.py dosyanda girintileme hatası var. Öncelikle Python dili konusunda temel düzeyde bilgi sahibi olmadan djangoya başlamamanı öneririm. Bilgin varsa devam et. url.py dosyanı yapıştırırsan bakabilirim.
Django veya php ikileminde ihtiyaçların cevap verir. Gördüğüm kadarıyla:
Djangonun bazı artıları: Hızlı geliştirme süresi, Pythonun gücü, esnekliği, nesne yapısının gelişmişliği, güvenliği, kod okunabilirliği, adeliği
phpnin artıları: Bol ve ucuz hatta bedava hosting imkanı, hemen her sunucuda kurulu olması, hemen işe başlamaya elverişli olması, bol döküman ve örnek olması.
Bir de başlığın yanlış mesajında da çok kelime hatası var. Dil konusunda daha özenli olalım. Türkçe, python farketmez.:)
nereye gidersen git kendini de götürürsün.

nazim

Teşekkür ediyorum halloldu
urls.py bu şekilde olması gerekiyormuş
Teşekkür ediyorum halloldu
urls.py bu şekilde olması gerekiyormuş
from django.conf.urls.defaults import *

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Example:
    # (r'^deneme/', include('deneme.foo.urls')),

    # Uncomment the admin/doc line below and add 'django.contrib.admindocs'
    # to INSTALLED_APPS to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
   (r'^admin/(.*)', admin.site.root),
)

raspacı

Bu şekilde admin sayfasını yönetebilirsin. Sudodaki django yazısını mı uyguluyorsun yoksa başka bir kaynaktan mı?
nereye gidersen git kendini de götürürsün.

nazim

Buradan
Buradan

http://209.85.135.132/search?q=cache:sW3HkAK_L9QJ:www.djangoturkiye.com/blog/2009/08/djangoturkiyecom-ders-3-ubuntuda-django-kurulumu-ve-test-sayfasi/+django+kurulum&cd=5&hl=tr&ct=clnk&gl=tr&lr=lang_tr