GithubHelp home page GithubHelp logo

saebyn / django-classifieds Goto Github PK

View Code? Open in Web Editor NEW
57.0 12.0 20.0 975 KB

not under active development - A Django app for classified ad creation, payment, management, viewing, and searching.

License: BSD 3-Clause "New" or "Revised" License

JavaScript 0.72% Python 99.28%

django-classifieds's Introduction

django-classifieds

Features include searching, attaching images to ads, PayPal checkout, configurable pricing options, and custom templates for listing, viewing, and editing each category of ads.

Requirements

Specific version details are in requirements.txt

Python 2.7+ Django 1.3

django-paypal django-registration django-profiles

south for migration support

Additional requirements for running tests are in dev_requirements.txt.

django-classifieds's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

django-classifieds's Issues

'thumbnail' is not a valid tag library

Environment:

Request Method: GET
Request URL: http://localhost:8000/classifieds/create/edit/4/

Django Version: 1.3.1
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',
'django.contrib.admin',
'classifieds',
'paypal.standard.ipn',
'registration',
'profiles',
'django.contrib.humanize',
'south']
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 /Users/joemartaganna/Desktop/librepost/classifieds/templates/classifieds/edit.html, error at line 2
'thumbnail' is not a valid tag library: Template library thumbnail not found, tried django.templatetags.thumbnail,django.contrib.admin.templatetags.thumbnail,classifieds.templatetags.thumbnail,django.contrib.humanize.templatetags.thumbnail
1 : {% extends "base.html" %}

2 : {% load i18n classifieds thumbnail %}

3 :

4 : {% block head %}

5 : {{ form.media|safe }}

6 : {% endblock %}

7 :

8 : {% block sidebar %}

9 :

12 :

Welcome, {{ user.first_name }}

Traceback:
File "/pyenv/librepost/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response

  1.                     response = callback(request, _callback_args, *_callback_kwargs)
    
    File "/pyenv/librepost/lib/python2.7/site-packages/django/views/generic/base.py" in view
  2.         return self.dispatch(request, _args, *_kwargs)
    
    File "/pyenv/librepost/lib/python2.7/site-packages/django/utils/decorators.py" in _wrapper
  3.         return bound_func(_args, *_kwargs)
    
    File "/pyenv/librepost/lib/python2.7/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
  4.             return view_func(request, _args, *_kwargs)
    
    File "/pyenv/librepost/lib/python2.7/site-packages/django/utils/decorators.py" in bound_func
  5.             return func(self, _args2, *_kwargs2)
    
    File "/Users/joemartaganna/Desktop/librepost/classifieds/views/init.py" in dispatch
  6.     return super(AdEditView, self).dispatch(request, _args, *_kwargs)
    
    File "/pyenv/librepost/lib/python2.7/site-packages/django/views/generic/base.py" in dispatch
  7.     return handler(request, _args, *_kwargs)
    
    File "/Users/joemartaganna/Desktop/librepost/classifieds/views/init.py" in get
  8.     return super(AdEditView, self).get(request, _args, *_kwargs)
    
    File "/pyenv/librepost/lib/python2.7/site-packages/django/views/generic/edit.py" in get
  9.     return super(BaseUpdateView, self).get(request, _args, *_kwargs)
    
    File "/pyenv/librepost/lib/python2.7/site-packages/django/views/generic/edit.py" in get
  10.     return self.render_to_response(self.get_context_data(form=form))
    
    File "/Users/joemartaganna/Desktop/librepost/classifieds/views/init.py" in render_to_response
  11.                                 self.page, context)
    
    File "/Users/joemartaganna/Desktop/librepost/classifieds/utils.py" in render_category_page
  12. return HttpResponse(template.render(context))
    
    File "/pyenv/librepost/lib/python2.7/site-packages/django/template/base.py" in render
  13.         return self._render(context)
    
    File "/pyenv/librepost/lib/python2.7/site-packages/django/template/base.py" in _render
  14.     return self.nodelist.render(context)
    
    File "/pyenv/librepost/lib/python2.7/site-packages/django/template/base.py" in render
  15.             bits.append(self.render_node(node, context))
    
    File "/pyenv/librepost/lib/python2.7/site-packages/django/template/debug.py" in render_node
  16.         result = node.render(context)
    
    File "/pyenv/librepost/lib/python2.7/site-packages/django/template/loader_tags.py" in render
  17.     compiled_parent = self.get_parent(context)
    
    File "/pyenv/librepost/lib/python2.7/site-packages/django/template/loader_tags.py" in get_parent
  18.     return get_template(parent)
    
    File "/pyenv/librepost/lib/python2.7/site-packages/django/template/loader.py" in get_template
  19. template, origin = find_template(template_name)
    
    File "/pyenv/librepost/lib/python2.7/site-packages/django/template/loader.py" in find_template
  20.         source, display_name = loader(name, dirs)
    
    File "/pyenv/librepost/lib/python2.7/site-packages/django/template/loader.py" in call
  21.     return self.load_template(template_name, template_dirs)
    
    File "/pyenv/librepost/lib/python2.7/site-packages/django/template/loader.py" in load_template
  22.         template = get_template_from_string(source, origin, template_name)
    
    File "/pyenv/librepost/lib/python2.7/site-packages/django/template/loader.py" in get_template_from_string
  23. return Template(source, origin, name)
    
    File "/pyenv/librepost/lib/python2.7/site-packages/django/template/base.py" in init
  24.     self.nodelist = compile_string(template_string, origin)
    
    File "/pyenv/librepost/lib/python2.7/site-packages/django/template/base.py" in compile_string
  25. return parser.parse()
    
    File "/pyenv/librepost/lib/python2.7/site-packages/django/template/base.py" in parse
  26.                 compiled_result = compile_func(self, token)
    
    File "/pyenv/librepost/lib/python2.7/site-packages/django/template/loader_tags.py" in do_extends
  27. nodelist = parser.parse()
    
    File "/pyenv/librepost/lib/python2.7/site-packages/django/template/base.py" in parse
  28.                 compiled_result = compile_func(self, token)
    
    File "/pyenv/librepost/lib/python2.7/site-packages/django/template/defaulttags.py" in load
  29.                                       (taglib, e))
    

Exception Type: TemplateSyntaxError at /classifieds/create/edit/4/
Exception Value: 'thumbnail' is not a valid tag library: Template library thumbnail not found, tried django.templatetags.thumbnail,django.contrib.admin.templatetags.thumbnail,classifieds.templatetags.thumbnail,django.contrib.humanize.templatetags.thumbnail

Key Error u'Images'

Hi,

I set up the app and dependencies, then added a category, image formats, and image upload fields to the category in the admin section. However, the image field is not showing up in template (classifieds/templates/classifieds/edit.html), so that when the form is submitted, there is an error:

KeyError at /classifieds/create/edit/17/
u'Images'
Django Version: 1.3.1
Exception Type: KeyError
Exception Value: u'Images'
Python Version: 2.7.3

I haven't changed anything in the template, models, or views.

The template code is the same as in the example:

  <tr>
    <td colspan="4">{{ imagesformset.non_form_errors }}</td>
  </tr>
     {% if imagesformset.forms %}
  <tr>
  <td colspan="4">
     <h3 style="font-size: 16px;">Add Picture(s)</h3>
  </td>
  </tr>
  <tr>
  <td colspan="4">Uploaded images must be smaller than {{ ad.category.images_max_size|filesizeformat }}. Images with dimensions larger than {{ ad.category.images_max_width }} by {{ ad.category.images_max_height }} pixels will be resized.
   Images must be in one of the following formats:
       {% for format in ad.category.images_allowed_formats.all %}
   {{ format.format }}

.................etc................

Am I missing something that is preventing the image form from being included in the template?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.