You are better off not trying to change the admin; rather write your own
templates and views which can customised to create the exact layout you
want. Admin is really designed to be used "as is" and populate the "back
end data" of your application.
On Tuesday, 15 December 2015 21:05:31 UTC+2,
python 2.7.11 and django 1.9
I run the code in "python manage.py shell"
Django 1.9
In[2]: import django
In[3]: from django.template import Template, Context
In[4]: t = Template("{% if x and x.strip %}OK{% else %}Empty{% endif %}")
In[5]: t.render(Context({}))
2015-12-17 14:13:43,443 [MainThread
Hi,
I have the following view function that I need to implement as a class
based view:
def admin_race_events(request, year, slug):
# cruft based on year and slug skipped - getting abstracted into an
inherited class
# raceday is a model
categories_in_event = raceday.categories_in_o
Warm greetings!
Today the Django Software Foundation launches our fundraising campaign for
2016. Our goal is to raise $200,000 in order to fully fund our Fellow
program, continue contributing to Django Girls workshops, sponsor official
Django conferences, and more.
Read about the significant p
Hi all,
This is totally a beginner question and if this is the incorrect forum for
this type of question please let me know!
So I have a couple questions.
First I have two models
a Student (as a signup)
a Class (as a Elective)
What is the correct way to associate nth amount of students to a
I have this view and I have a bug why?
def index(request):
# jezeli formularz coś wysłał
if request.method == 'POST':
form_r = UserCreationForm(request.POST)
username = request.POST['username']
password = request.POST['password']
user = authenticate(username
On Thu, Dec 17, 2015 at 7:16 PM, Dariusz Mysior
wrote:
> password = request.POST['password']
Maybe your form is not a input with 'password'
Can you show your HTML code builded by django
--
Ezequiel Bertti
E-Mail: eber...@gmail.com
Cel: (21) 99188-4860
--
You received this message because
Hi all
I am new to this and am really struggling with what should be a simple
problem. I have a main.html that has javascript code. There is a switch
statement. From the first case statement, I wish to load a template that
is the child of main.html. I have a /home/view.py with:
def welcome(r
I don't exactly understand what you are trying to do (what are you
switching on? must you do this in JavaScript?)
But in order to load server content you can use either JQuery Get method
https://api.jquery.com/jquery.get/
Where you will create an empty div in your HTML, and put the server
respo
We don't have your UserCreationForm, but usually those things have
password1 and password2 fields, and no "password"
On Thursday, December 17, 2015 at 10:16:33 PM UTC+1, Dariusz Mysior wrote:
>
> I have this view and I have a bug why?
>
> def index(request):
> # jezeli formularz coś wysłał
>
10 matches
Mail list logo