전체 글 (1185) 썸네일형 리스트형 remove django admin page auth menu #remove django admin page auth menu from django.contrib.auth.models import User, Groupfrom django.contrib import adminadmin.autodiscover() admin.site.unregister(User)admin.site.unregister(Group) python2.7 Django1.6.x admin site template filed path for mac python2.7 Django1.6.x admin site template filed pathfor mac /Library/Python/2.7/site-packages/django/contrib/admin/templates/admin 구글 좌표 변환 구글 좌표 변환 http://maps.googleapis.com/maps/api/geocode/json?address=원하는주소&language=ko&sensor=false setting.py 의 변수 사용하기 (setting.py get custom value) in setting.py CUSTOM_VALUE = "value" in view.py from APPNAME import settings print settings. CUSTOM_VALUE 구글플러스 로그인시 토스트창/팝업창 없애기 / Stop to google+ toast/notification sign-in popping up the message if you sign_in gogole+ You can see the notification to the bottom. The source of the notification If you want to stop thisadd in *.css iframe[src^="https://apis.google.com/u/0/_/widget/oauthflow/toast"] {display: none;} Accessor for field 'FIELDNAME' clashes with related field 'MODEL.FIELDNAME'. Add a related_name argument to the definition for 'FIELDNAME' if you see an error APPNAME.MODELNAME : Accessor for field 'FIELDNAME' clashes with related field 'MODEL.FIELDNAME'. Add a related_name argument to the definition for 'FIELDNAME' This error is your model have two FK. so The name overlaps. Do not know ORM relateed field my model is as follows: after: add related_name="FIELDNAME" and you use the related_name in views.py code ex)It's error code.$ U.. django templatetags error "template libarary not fount, tried django.templatetags.." if you have as error templatesyntaxerror is not a valid tag library: template libarary not fount, tried django.templatetags, ........ in settings.py, you should never name the project 'myproj' explicitely. In INSTALLED_APPS, just use 'myapp'. Also, you should have this : TEMPLATE_LOADERS = ( 'django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader', 'django.te.. south error south_migrationhistory doesn't exist if you see an error 'south error south_migrationhistory doesn't exist' $python ./manage.py syncdb --migrate then syncdb create 'master id' and $python ./manage.py migrate APPNAME It's worked!! 이전 1 ··· 42 43 44 45 46 47 48 ··· 149 다음