django-class-based-views
Class-based (generic) views in Flask
What\'s the best way to write generic views using the Flask web framework? Does the @app.route decorator support ca开发者_如何转开发llable classes? Or am I thinking about this in entirely the wrong f[详细]
2023-03-02 03:43 分类:问答Accessing a context object in a Django class-based generic view
I\'m using a DetailView to view a Project object, and I would like to be able to access the Project object being viewed in order to pass it to a decorator, something like this:[详细]
2023-03-01 10:03 分类:问答Accessing request.user in class based generic view CreateView in order to set FK field in Django
So I have a m开发者_JS百科odel that includes: class Place(models.Model): .... created_by = models.ForeignKey(User)[详细]
2023-03-01 04:18 分类:问答Django Class Based View Composite
I\'m using Django 1.3\'s Class-base generic views for a project. They\'re really nice but I would like to be DRYer. I have a page that displays a list of press coverage we\'ve received and another whi[详细]
2023-02-28 04:17 分类:问答Field-derived template names in Django class-based views
I\'m having trouble figuring out how to load a template from a model\'s field name in Django\'s new class-based views. Basically I\'m looking for the functionality of Django contrib flatpages in my ow[详细]
2023-02-22 05:57 分类:问答Example of Django Class-Based DeleteView
Does anyone know of or can anyone please开发者_如何学Python produce a simple example of Django\'s class-based generic DeleteView? I want to subclass DeleteView and ensure that the currently logged-in[详细]
2023-02-21 23:17 分类:问答Django(trunk) and class based generic views: one form's initial data appearing in another one's
I\'ve run into a strange problem where data seems to persist accross different views and requests until the server gets restarted.[详细]
2023-02-10 17:03 分类:问答Feincms mixing content types
I have a question and i want to know if i can mix 2 existing contenTypes together into one custom contenType. I need my own content type with contenType RichTextContent and ImageCont开发者_如何学Cent[详细]
2023-01-31 09:15 分类:问答What is the advantage of Class-Based views?
I read today that Django 1.3 alpha is shipping, and the most touted new feature is the introduction of class-based views.[详细]
2023-01-29 07:48 分类:问答Kwargs and class-based views in Django
I\'ve searched SO and the Django doc and can\'t seem to be able to find this.I\'m extending the base functionality of the django.contrib.comments app to use the custom permission system that\'s in my[详细]
2022-12-21 17:43 分类:问答