Environment: Request Method: GET Request URL: http://127.0.0.1:8000/view/
Django Version: 1.3 Python Version: 2.7.2 Installed Applications: ['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'helloe.shiyan'] Installed Middleware: ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware') Traceback: File "C:\Python27\lib\site-packages\django\core\handlers\base.py" in get_response 101. request.path_info) File "C:\Python27\lib\site-packages\django\core\urlresolvers.py" in resolve 250. for pattern in self.url_patterns: File "C:\Python27\lib\site-packages\django\core\urlresolvers.py" in _get_url_patterns 279. patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module) File "C:\Python27\lib\site-packages\django\core\urlresolvers.py" in _get_urlconf_module 274. self._urlconf_module = import_module(self.urlconf_name) File "C:\Python27\lib\site-packages\django\utils\importlib.py" in import_module 35. __import__(name) File "C:\Python27\Lib\site-packages\django\helloe\..\helloe\urls.py" in <module> 2. from shiyan.views import archive Exception Type: SyntaxError at /view/ Exception Value: keyword argument repeated (views.py, line 21) —————————————————————————————————————— view.py ---------- if 'MonthSelect' in request.POST and request.POST['MonthSelect']: month = request.POST['MonthSelect'] logs = DailyReport.objects.filter(DailyReport_Timestamp__month=int(month.split('-') [0]),DailyReport_Timestamp__month=int(month.split('-')[1])).order_by("- DailyReport_Timestamp") today = month else: today = datetime.datetime.now().month logs = DailyReport.objects.filter(DailyReport_Timestamp__month=datetime.datetime.now().month,DailyReport_Timestamp__year=datetime.datetime.now().year).order_by("- DailyReport_Timestamp") -------------------- so,where is error? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.