vchakoshy / django-pin Goto Github PK
View Code? Open in Web Editor NEWdjango ~ pinterest ~ application ~ django-pin
django ~ pinterest ~ application ~ django-pin
In template /usr/local/lib/python2.7/dist-packages/pin/templates/base/bar_first.html, error at line 12:
"<a href="{% url home %}">صفحه اصلی</a>"
Exception Value:
Reverse for 'home' with arguments '()' and keyword arguments '{}' not found.
Exception Location: /usr/local/lib/python2.7/dist-packages/django/template/defaulttags.py in render, line 424
How i can fix this error?
Environment:
Request Method: GET
Request URL: http://127.0.0.1:8000/pin/
Django Version: 1.4.5
Python Version: 2.7.3
Installed Applications:
('pin',
'daddy_avatar',
'sorl.thumbnail',
'compressor',
'taggit',
'django.contrib.comments',
'django.contrib.humanize',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.flatpages')
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',
'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware')
Template error:
In template /usr/local/lib/python2.7/dist-packages/pin/templates/base/bar_first.html, error at line 12
Reverse for 'home' with arguments '()' and keyword arguments '{}' not found.
2 : {% load flatpages %}
3 : {% load daddy_avatar %}
4 : {% get_flatpages as flatpages %}
5 : <ul class="nav nav-tabs nav-first">
6 :
7 : <li>
8 : <img src="{{MEDIA_URL}}img/wisgoon_logo.png" height="38px" style="height: 38px" alt="wisgoon what is going on" />
9 : </li>
10 :
11 : <li class="pull-right">
12 : <a href=" {% url home %} ">صفحه اصلی</a>
13 : </li>
14 : <li class="nav-right {{pinactive}}">
15 : <a href="{% url pin-home %}">پین</a></li>
16 :
17 : {% for page in flatpages %}
18 : <li class="pull-right"><a href="{{ page.url }}">{{ page.title }}</a></li>
19 : {% endfor %}
20 : {% if user.is_authenticated %}
21 : <li class="pull-right">
22 : <a class="tooltips" data-placement="bottom" rel="tooltip" title="نمایش و ویرایش پروفایل" href="{% url pin-user user.id%}"><img src="{{user.email|daddy_avatar:20}}"></a>
Traceback:
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
111. response = callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python2.7/dist-packages/pin/views.py" in home
60. context_instance=RequestContext(request))
File "/usr/local/lib/python2.7/dist-packages/django/shortcuts/__init__.py" in render_to_response
20. return HttpResponse(loader.render_to_string(*args, **kwargs), **httpresponse_kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/template/loader.py" in render_to_string
176. return t.render(context_instance)
File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in render
140. return self._render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in _render
134. return self.nodelist.render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in render
823. bit = self.render_node(node, context)
File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py" in render_node
74. return node.render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py" in render
123. return compiled_parent._render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in _render
134. return self.nodelist.render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in render
823. bit = self.render_node(node, context)
File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py" in render_node
74. return node.render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py" in render
155. return self.render_template(self.template, context)
File "/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py" in render_template
137. output = template.render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in render
140. return self._render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in _render
134. return self.nodelist.render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in render
823. bit = self.render_node(node, context)
File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py" in render_node
74. return node.render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/defaulttags.py" in render
368. return strip_spaces_between_tags(self.nodelist.render(context).strip())
File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in render
823. bit = self.render_node(node, context)
File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py" in render_node
74. return node.render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/defaulttags.py" in render
424. raise e
Exception Type: NoReverseMatch at /pin/
Exception Value: Reverse for 'home' with arguments '()' and keyword arguments '{}' not found.
pip install django-tastypie
pip install django-taggit
pip install django-tastypie
pip install pycalverter
'pin',
'taggit',
'django.contrib.humanize',
'django.contrib.comments',
'sorl.thumbnail',
'daddy_avatar',
...
?
/accounts/login and /accounts/registration cannot founded.
How can I add registration URLs and Where is the registration template ?
thank you!
How can fix this error?
from this line:
<link rel="alternate" type="application/rss+xml" href="{% url pin-latest-feed%}" />
Environment:
Request Method: GET
Request URL: http://127.0.0.1:8000/
Django Version: 1.4.5
Python Version: 2.7.3
Installed Applications:
('django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'pin',
'django.contrib.comments',
'django.contrib.humanize',
'django.contrib.flatpages',
'daddy_avatar',
'sorl.thumbnail',
'taggit',
'compressor')
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')
Template error:
In template /usr/local/lib/python2.7/dist-packages/django_pin-1.3.14-py2.7.egg/pin/templates/base/pin.html, error at line 11
No module named django.views
1 : {% load pin_tags %}
2 : {% load compress %}
3 : <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
4 : "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
5 :
6 : <html>
7 : <head>
8 : <title>ویسگون {% block title%}{% endblock%}</title>
9 : <meta name="keywords" content="social,rss,reader" />
10 : <meta name="description" content="{%block description%}what is going on, social rss reader{%endblock%}" />
11 : <link rel="alternate" type="application/rss+xml" href=" {% url pin-latest-feed%} " />
12 : {% block opengraph%}{% endblock opengraph%}
13 :
14 : {% include "base/all_header.html"%}
15 :
16 : {% compress css %}
17 : <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/main.css?ver=1.1.1">
18 : <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/bootstrap.css">
19 : <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/important.css?v=0.0.1">
20 : {%endcompress%}
21 :
Traceback:
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
111. response = callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python2.7/dist-packages/django_pin-1.3.14-py2.7.egg/pin/views.py" in home
60. context_instance=RequestContext(request))
File "/usr/local/lib/python2.7/dist-packages/django/shortcuts/__init__.py" in render_to_response
20. return HttpResponse(loader.render_to_string(*args, **kwargs), **httpresponse_kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/template/loader.py" in render_to_string
176. return t.render(context_instance)
File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in render
140. return self._render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in _render
134. return self.nodelist.render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in render
823. bit = self.render_node(node, context)
File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py" in render_node
74. return node.render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py" in render
123. return compiled_parent._render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in _render
134. return self.nodelist.render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in render
823. bit = self.render_node(node, context)
File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py" in render_node
74. return node.render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/defaulttags.py" in render
411. url = reverse(view_name, args=args, kwargs=kwargs, current_app=context.current_app)
File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py" in reverse
476. return iri_to_uri(resolver._reverse_with_prefix(view, prefix, *args, **kwargs))
File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py" in _reverse_with_prefix
363. possibilities = self.reverse_dict.getlist(lookup_view)
File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py" in reverse_dict
276. self._populate()
File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py" in _populate
265. lookups.appendlist(pattern.callback, (bits, p_pattern, pattern.default_args))
File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py" in callback
216. self._callback = get_callable(self._callback_str)
File "/usr/local/lib/python2.7/dist-packages/django/utils/functional.py" in wrapper
27. result = func(*args)
File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py" in get_callable
105. not module_has_submodule(import_module(parentmod), submod)):
File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py" in import_module
35. __import__(name)
Exception Type: ImportError at /
Exception Value: No module named django.views```
TemplateSyntaxError at /pin/
'humanize' is not a valid tag library: Template library humanize not found, tried django.templatetags.humanize,django.contrib.staticfiles.templatetags.humanize,django.contrib.admin.templatetags.humanize,pin.templatetags.humanize
Request Method: GET
Request URL: http://127.0.0.1:8000/pin/
Django Version: 1.4.1
Exception Type: TemplateSyntaxError
Exception Value:
'humanize' is not a valid tag library: Template library humanize not found, tried django.templatetags.humanize,django.contrib.staticfiles.templatetags.humanize,django.contrib.admin.templatetags.humanize,pin.templatetags.humanize
Exception Location: /usr/local/lib/python2.7/dist-packages/django/template/defaulttags.py in load, line 1043
Python Executable: /usr/bin/python
Python Version: 2.7.3
In template /usr/local/lib/python2.7/dist-packages/pin/templates/pin/_items.html, error at line 2
'humanize' is not a valid tag library: Template library humanize not found, tried django.templatetags.humanize,django.contrib.staticfiles.templatetags.humanize,django.contrib.admin.templatetags.humanize,pin.templatetags.humanize
1 {% load pin_tags%}
2 {% load humanize %}
3 {% load thumbnail %}
4 {% load daddy_avatar%}
5
6 {% spaceless %}
7 {% for item in latest_items %}
8
9
Assalamu alaikum
Hello there, :)
Sorry, your application does not run properly. I'm still learning Django, and I'm interested to try your application. But I get an error like this :
ImproperlyConfigured at / pin
ProfileAdmin.list_display [3], 'cnt_post' is not a callable or an attribute of 'ProfileAdmin' or found in the model of 'Profile'.
Python Version: 2.7.5
Django Version: 1.6
I'm not sure if I've been following your README correctly or not. Because I am slightly confused. Your documentation is not complete, and not newbie-friendly. Can you update your documentation to make it more detail? I'm sure it will help a lot :)
Excuse my English.
Thanks in advance.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.