Giter Site home page Giter Site logo

barttc / django-frontendadmin Goto Github PK

View Code? Open in Web Editor NEW
187.0 187.0 29.0 86 KB

Not in active development; see README -- django-frontendadmin is a set of templatetags to allow an easy and unobstrusive way to edit model-data in the frontend of your page. See wiki for screencast!

Home Page: http://www.mahner.org/

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

Python 65.93% CSS 3.95% HTML 30.11%

django-frontendadmin's Introduction

Hello World ๐Ÿ˜˜

django-frontendadmin's People

Contributors

artscoop avatar barttc avatar chrisdev avatar issackelly avatar justquick avatar rahal avatar rolo avatar

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  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

django-frontendadmin's Issues

SSL/Https in action_url

I noticed that you used request.build_absolute_uri() for the action_url in change delete etc. This always seems to resolve to http: so it leads to security warning or worse SSL enabled sites. Why not use request.get_full_path ??

AtributeError exception on add,change or delete actions in Django 1.4

Django 1.4 removed the message_set related manager from
the User model and also the message_set.create() method which was
being used to create the success messages. My suggestion to ensure compatibility with earlier versions of Django is to use a try block to trap the AttributeError exception that could be raised when message_set.create() is used.
If this exception is raised then the messages framework to create the success message

Can't use with non-ascii uri

Error happens in views.py on these lines:

return HttpResponseRedirect(request.GET.get('next'))

Works this way:

return HttpResponseRedirect(iri_to_uri(request.GET.get('next')))

1.2 Support - CSRF

One change for 1.2 support for CSRF is adding this within the <form> element of form_ajax.html:
{% csrf_token %}

spelling error in views.py

in playing with the current tip, found a spelling error in views.py, line 160:

         # Return to last page
         if request.is_ajax():
             return success(request)
     return _handle_repsonse(request, instance)

Exception on add, create, delete for versions < Django 1.4

Exception Value: create() takes exactly 1 argument (2 given)

Introduced in the fix for issue#18 My bad!!

The code is

 request.user.message_set.create(msg)

But it should be:

 request.user.message_set.create(message=msg)

Change in add(),change() and delete() methods

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.