Re: How to use correctly a FormSet in django administration

2021-05-05 Thread ramadhan ngallen
Cc cc cc cc On 5 May 2021, 17:36 +0300, Serge Alard , wrote: > Hello > > I should like to do personalised validation in Django administration but I > have always the same error : > type object 'MainForm' has no attribute '_meta' > > To do so, I

How to use correctly a FormSet in django administration

2021-05-05 Thread Serge Alard
Hello I should like to do personalised validation in Django administration but I have always the same error : type object 'MainForm' has no attribute '_meta' To do so, I use the following admin.py (attached file) Thanks in advance to anybody who could me unblocked.

Re: To get object id currently modified in django administration

2021-05-02 Thread Ryan Nowakowski
delForm, mais je ne sais pas comment accéder à l'objet id en cours de > >modification dans l'administration de Django. >Pourriez-vous m'aider. Merci d'avance. > > >Hello > >Currently I do customized validations on objects of my project in the >Django admi

To get object id currently modified in django administration

2021-05-02 Thread Serge Alard
ourriez-vous m'aider. Merci d'avance. Hello Currently I do customized validations on objects of my project in the Django administration. For that, I created a ModelForm but I do not know how to get the object id currently in modification in Django administration. Could you help me. T

Re: How to Add to Django Administration Using Code

2020-10-11 Thread Dvs Khamele
Hi do you hire contract based python/django freelancer? I can help you in this and related tasks Best Regards, Divyesh Khamele On Sun, 11 Oct 2020, 9:59 pm Let's Get Going, wrote: > Hi everyone. I have created a Django chat app for testing. Two days ago it > was working fine. But from yesterday

Re: How to Add to Django Administration Using Code

2020-10-11 Thread Let's Get Going
Hi everyone. I have created a Django chat app for testing. Two days ago it was working fine. But from yesterday it is not working as expected. I don't know where the mistake is. Can anyone help me with that please? I am pasting form, models,signup html page and views code. or if anyone want to help

Re: How to Add to Django Administration Using Code

2020-09-21 Thread coolguy
further to my previous comments please share the your related model code to make discussion interesting... On Sunday, September 20, 2020 at 11:35:05 AM UTC-4 Lightning Bit wrote: > Hi all, > > I am trying to figure out how to add "Customers" using code. Please look > at the administration layo

Re: How to Add to Django Administration Using Code

2020-09-21 Thread coolguy
do want to add the picture file to the customer application or want to see the picture in admin? On Sunday, September 20, 2020 at 11:35:05 AM UTC-4 Lightning Bit wrote: > Hi all, > > I am trying to figure out how to add "Customers" using code. Please look > at the administration layout: > > [

How to Add to Django Administration Using Code

2020-09-20 Thread Lightning Bit
Hi all, I am trying to figure out how to add "Customers" using code. Please look at the administration layout: [image: HELP.png] I was able to add to "Groups" using the following code in "views.py": *@unauthenticated_user* *def registerPage(request):* *form = CreateUserForm()*

Re: DJANGO ADMINISTRATION ERROR & TemplateDoesNotExist

2020-09-03 Thread King Niko
RESOLVED. I managed to fix it. The problem .. Was so obvious. In *views.py* I did not provide the* cart.html *and *checkout.html* with the same configurations as *store.html*. Thus, this caused the 500 server errors. I hope that this thread can help anyone in the future that encounters a similar p

Re: DJANGO ADMINISTRATION ERROR & TemplateDoesNotExist

2020-09-03 Thread King Niko
Hi Kasper, I am getting the following error: raise TemplateDoesNotExist(template_name, chain=chain) django.template.exceptions.TemplateDoesNotExist: ./store/cart.html How can the template not exist if the other templates exist? Lol, it seems impossible. On Thu, Sep 3, 2020 at 8:31 AM Kasper La

Re: DJANGO ADMINISTRATION ERROR & TemplateDoesNotExist

2020-09-03 Thread Kasper Laudrup
Hi King Niko, On 03/09/2020 13.44, King Niko wrote: Okay, so I fixed everything with Django Logging- including getting the pictures to show up in the store. What's written in the Django logs when you get the 500 errors? Kind regards, Kasper Laudrup -- You received this message because you

Re: DJANGO ADMINISTRATION ERROR & TemplateDoesNotExist

2020-09-03 Thread King Niko
Okay, so I fixed everything with Django Logging- including getting the pictures to show up in the store. However, one thing still remains - recognizing the *store/cart.html* and *store/checkout.html* To get the pictures to appear from the DJANGO ADMINISTRATION, I used the following

Re: DJANGO ADMINISTRATION ERROR & TemplateDoesNotExist

2020-09-02 Thread Kasper Laudrup
Hi King Niko, On 02/09/2020 17.46, King Niko wrote: *I have not managed to get the Django log up and running, but this may help to get guidance on resolving the issue:* You should get access to the Django log. It's pointless to waste time on guessing what might be wrong when you could have

Re: DJANGO ADMINISTRATION ERROR & TemplateDoesNotExist

2020-09-02 Thread King Niko
King Niko, > > On 01/09/2020 07.43, King Niko wrote: > > The console does not seem to provide much information. It is simply > > stating that there is a 500 Server Error. I tried sifting for more > > details but there were none. > > > > The console in your bro

Re: DJANGO ADMINISTRATION ERROR & TemplateDoesNotExist

2020-09-01 Thread Kasper Laudrup
es /that derive from the DJANGO ADMINISTRATION page. That sounds a lot more useful, but are you really sure you're seeing the logs from Django and not just the web server forwarding requests to your Django application? You need to get the logs from your actual Django application to see the

Re: DJANGO ADMINISTRATION ERROR & TemplateDoesNotExist

2020-08-31 Thread King Niko
hat derive from the DJANGO ADMINISTRATION page. Strangely, all of the other pages and pictures on the website works. It is rather confusing to see only the store section of the site encountering this bug. On Tue, Sep 1, 2020 at 12:45 AM RANGA BHARATH JINKA < bharathjink...@gmail.com> wrote: >

Re: DJANGO ADMINISTRATION ERROR & TemplateDoesNotExist

2020-08-31 Thread RANGA BHARATH JINKA
blank with the no file icon in the top left. This >>> was not the case back in the testing environment. >>> >>> Why would this occur only upon publishing the website? It does not seem >>> to be registering the images from DJANGO ADMINISTRATION. Also, when I c

Re: DJANGO ADMINISTRATION ERROR & TemplateDoesNotExist

2020-08-31 Thread King Niko
g to the website, I am unable to actually "see" >> the pictures - they are blank with the no file icon in the top left. This >> was not the case back in the testing environment. >> >> Why would this occur only upon publishing the website? It does not seem >>

Re: DJANGO ADMINISTRATION ERROR & TemplateDoesNotExist

2020-08-31 Thread RANGA BHARATH JINKA
te, I am unable to actually "see" > the pictures - they are blank with the no file icon in the top left. This > was not the case back in the testing environment. > > Why would this occur only upon publishing the website? It does not seem to > be registering the images from DJA

DJANGO ADMINISTRATION ERROR & TemplateDoesNotExist

2020-08-31 Thread Lightning Bit
nvironment. Why would this occur only upon publishing the website? It does not seem to be registering the images from DJANGO ADMINISTRATION. Also, when I click my cart icon after adding one of the non-image showing items, I receive an error 500 stating that the cart.html and only the

Re:how to create Django administration

2018-04-07 Thread PRADEEP SINGH
Sent from RediffmailNG on Android From: ansh srivastav Sent: Sat, 7 Apr 2018 21:49:20 GMT+0530 To: django-users@googlegroups.com Subject: Re: A first time programmer First check the version of python, then type :django-admin startproject projectname. On 7 Apr 2

Re: How to prevent label wrap in Django Administration

2015-04-19 Thread Larry Martell
On Sun, Apr 19, 2015 at 7:21 AM, Bernd Wechner wrote: > I'm just playing around with Django and have cut a simple model and all is > working fine. The Django administration tool works a charm, and I can move > onto some views and forms. But what puzzles me immensely is why edi

Re: How to prevent label wrap in Django Administration

2015-04-19 Thread Thomas Lockhart
On 4/19/15 4:21 AM, Bernd Wechner wrote: I'm just playing around with Django and have cut a simple model and all is working fine. The Django administration tool works a charm, and I can move onto some views and forms. But what puzzles me immensely is why editing a tuple looks like this

How to prevent label wrap in Django Administration

2015-04-19 Thread Bernd Wechner
I'm just playing around with Django and have cut a simple model and all is working fine. The Django administration tool works a charm, and I can move onto some views and forms. But what puzzles me immensely is why editing a tuple looks like this (with crazy label wrap). Can I fix this an

Re: Can´t get Django Administration page to show

2013-06-05 Thread Sithembewena Lloyd Dube
You're welcome, Oliver :-) Regards, Sithu On Wed, Jun 5, 2013 at 6:51 PM, Oliver Hilmarsson < oliver.hilmars...@gmail.com> wrote: > Thanks, Sithu, I didn´t uncomment the lines in urls.py. It´s working now > :o) > > Regards, > Óliver > > > On Wednesday, June 5, 2013 11:47:49 AM UTC, Oliver Hilm

Re: Can´t get Django Administration page to show

2013-06-05 Thread Oliver Hilmarsson
Thanks, Sithu, I didn´t uncomment the lines in urls.py. It´s working now :o) Regards, Óliver On Wednesday, June 5, 2013 11:47:49 AM UTC, Oliver Hilmarsson wrote: > > I´m finished part 1 in django tutorial > https://docs.djangoproject.com/en/dev/intro/tutorial01/ > > Everything worked great, b

Re: Can´t get Django Administration page to show

2013-06-05 Thread Sithembewena Lloyd Dube
Hi Oliver, please provide more information. Did you follow all steps, such as: add your app/s to INSTALLED_APPS in your settings file, run the manage.py syncdb command, create an admin.py file where you register your model/s, comment out the lines that activate your admin site in urls.py? On Wed

Can´t get Django Administration page to show

2013-06-05 Thread Oliver Hilmarsson
I´m finished part 1 in django tutorial https://docs.djangoproject.com/en/dev/intro/tutorial01/ Everything worked great, but starting in part 2 I can´t get the admin page to show up. I always just get the initial "It worked! Congratulations on your first Django-powered page" page when I go to

Re: What reason is Django administration

2012-03-09 Thread kenneth gonsalves
On Fri, 2012-03-09 at 03:42 -0800, Stone wrote: > W/o authentication web page will be only in read only state. without authentication he sees nothing. -- regards Kenneth Gonsalves -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to thi

Re: What reason is Django administration

2012-03-09 Thread Stone
ote: > > I have developed some web pages and I have never used Django > > administration? > > Is there any control for controlling access of users? > > https://docs.djangoproject.com/en/dev/ref/contrib/admin/ > > search for has_change_permission > -- > regards >

Re: What reason is Django administration

2012-03-08 Thread kenneth gonsalves
On Thu, 2012-03-08 at 12:44 -0800, Stone wrote: > I have developed some web pages and I have never used Django > administration? > Is there any control for controlling access of users? > > https://docs.djangoproject.com/en/dev/ref/contrib/admin/ search for has_change_permiss

Re: What reason is Django administration

2012-03-08 Thread Shawn Milochik
On 03/08/2012 03:44 PM, Stone wrote: Dear users, I have developed some web pages and I have never used Django administration? Is there any control for controlling access of users? Do you have any examples? Thank you Petr https://docs.djangoproject.com/en/1.3/topics/auth/#permissions

What reason is Django administration

2012-03-08 Thread Stone
Dear users, I have developed some web pages and I have never used Django administration? Is there any control for controlling access of users? Do you have any examples? Thank you Petr -- You received this message because you are subscribed to the Google Groups "Django users" grou

Re: change Django administration name

2011-11-09 Thread Nicolas
ost at the end of the tutorial part 2 but I can't manage to > > change "Django administration" to something different. What I did: > > - create a template/admin subdirectory into the folder containing all > > the files related to mysite (it looks like this; C:/Users/s

Re: change Django administration name

2011-11-08 Thread Tom Evans
On Tue, Nov 8, 2011 at 4:46 PM, Nicolas wrote: > Dear all, > I'm almost at the end of the tutorial part 2 but I can't manage to > change "Django administration" to something different. What I did: > - create a template/admin subdirectory into the folder conta

change Django administration name

2011-11-08 Thread Nicolas
Dear all, I'm almost at the end of the tutorial part 2 but I can't manage to change "Django administration" to something different. What I did: - create a template/admin subdirectory into the folder containing all the files related to mysite (it looks like this; C:/Users/songbi

Re: Django administration page, created a Site -- now what?

2011-05-07 Thread Boštjan Mejak
Thank you for your answers. I'll go read the docs then. ;) -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr..

Re: Django administration page, created a Site -- now what?

2011-05-07 Thread Xavier Ordoquy
> Hello, > > I have created a new Site in my "Django administration" page. How can I use > it now? If I visit the URL that this newly created Site points to, I get a > URLconf error. So what do I need to add to my project's urls.py file? A > newbie here. Pl

Re: Django administration page, created a Site -- now what?

2011-05-06 Thread Andy McKay
On 2011-05-06, at 5:25 PM, Boštjan Mejak wrote: > I have created a new Site in my "Django administration" page. How can I use > it now? If I visit the URL that this newly created Site points to, I get a > URLconf error. So what do I need to add to my project's urls.p

Django administration page, created a Site -- now what?

2011-05-06 Thread Boštjan Mejak
Hello, I have created a new Site in my "Django administration" page. How can I use it now? If I visit the URL that this newly created Site points to, I get a URLconf error. So what do I need to add to my project's urls.py file? A newbie here. Please help me on this. Thanks. -- Yo

Re: Django administration - Allow full HTML for a TextField form

2011-02-19 Thread NewNumOrder
Thanks for the help! -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options,

Re: Django administration - Allow full HTML for a TextField form

2011-02-19 Thread Daniel Roseman
On Saturday, February 19, 2011 3:04:27 PM UTC, NewNumOrder wrote: > > I've tried enabling 'allow_tags' for a TextField, but the admin tools > still encode the text when inserting or updating rows. > > Is the following code correct? > some_field = models.TextField() > some_field.allow_tags = Tr

Django administration - Allow full HTML for a TextField form

2011-02-19 Thread NewNumOrder
I've tried enabling 'allow_tags' for a TextField, but the admin tools still encode the text when inserting or updating rows. Is the following code correct? some_field = models.TextField() some_field.allow_tags = True I can't even edit the HTML with phpPgAdmin because it does the same thing, so I'

Re: DJANGO administration

2010-12-06 Thread mongoose
try this out http://docs.djangoproject.com/en/dev/intro/tutorial02/#customize-the-admin-look-and-feel On Dec 6, 12:21 pm, x_marine wrote: > Hi all, > > I have been using Django for a client. The client want the word " > Django Administration "  to be change to &qu

Re: DJANGO administration

2010-12-06 Thread Konrad Delong
On 6 December 2010 11:21, x_marine wrote: > Hi all, > > I have been using Django for a client. The client want the word " > Django Administration "  to be change to " Amazonia Administration" > > > Where do I find the html files and how do I change them?

DJANGO administration

2010-12-06 Thread x_marine
Hi all, I have been using Django for a client. The client want the word " Django Administration " to be change to " Amazonia Administration" Where do I find the html files and how do I change them? thanks -- You received this message because you are subscribed to the Go

Re: Model name in "Django Administration"

2010-01-26 Thread arlolra
class Meta: verbose_name = 'new special name' see: http://docs.djangoproject.com/en/dev/ref/models/options/#verbose-name On Jan 26, 5:21 am, Zygmunt wrote: > How to set new special name for model in "Django Admin Site"? -- You received this message because you are subscribed to the Google

Re: Model name in "Django Administration"

2010-01-26 Thread Daniel Roseman
On Jan 26, 10:21 am, Zygmunt wrote: > How to set new special name for model in "Django Admin Site"? Er, read the "documentation"? http://docs.djangoproject.com/en/dev/ref/contrib/admin/#s-verbose-name -- DR. -- You received this message because you are subscribed to the Google Groups "Django u

Model name in "Django Administration"

2010-01-26 Thread Zygmunt
How to set new special name for model in "Django Admin Site"? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubsc

Re: Missing calender button in Django Administration

2008-05-30 Thread Scott Moonen
ent i am here: > http://www.djangoproject.com/documentation/0.96/tutorial02/#explore-t... > > > > My poblem is: > > when i log in to the Django Administration und try to edit the polls > > everthing works > > fine except that the calender button, the today link, the clock

Re: Missing calender button in Django Administration

2008-05-30 Thread lenz
, lenz <[EMAIL PROTECTED]> wrote: > Hi, > > i am very new to django and following the tutorial from the django > docs. > At the moment i am > here:http://www.djangoproject.com/documentation/0.96/tutorial02/#explore-t... > > My poblem is: > when i log in to the Django A

Missing calender button in Django Administration

2008-05-30 Thread lenz
Hi, i am very new to django and following the tutorial from the django docs. At the moment i am here: http://www.djangoproject.com/documentation/0.96/tutorial02/#explore-the-free-admin-functionality My poblem is: when i log in to the Django Administration und try to edit the polls everthing

Re: Login to Django Administration Page via Post Method

2008-01-16 Thread William Siegrist
You use "Self" instead of "self" in the param line, was that just a cut-n-paste error? -Bill On Jan 15, 2008, at 10:41 PM, [EMAIL PROTECTED] wrote: Hi all, I am about to writing the django unittest, so I need to login to the django admin page to test my unittest. I send the POST request to

Login to Django Administration Page via Post Method

2008-01-15 Thread [EMAIL PROTECTED]
Hi all, I am about to writing the django unittest, so I need to login to the django admin page to test my unittest. I send the POST request to / admin/ by using the admin account(username/password). Then the response from the admin page return like the password/username are invalid. can't login.

Re: Django Book: The Django Administration Site

2008-01-07 Thread Ramiro Morales
On Jan 7, 2008 12:40 AM, Mikey3D <[EMAIL PROTECTED]> wrote: > > Thank you so much it works. :-) One question, why is that I have Auth > and Sites are showing up when my "class Admin: pass" were wrong way of > coding still works? > Because these are different apps? and they have their Admin inner

Re: Django Book: The Django Administration Site

2008-01-07 Thread iamelgringo
The book is online if you want to copy/paste code: http://www.djangobook.com/en/1.0/chapter06/ Good luck and no problem. On Jan 6, 6:40 pm, Mikey3D <[EMAIL PROTECTED]> wrote: > Hi Elgringo, > > Thank you so much it works. :-) One question, why is that I have Auth > and Sites are showing up whe

Re: Django Book: The Django Administration Site

2008-01-06 Thread Mikey3D
Hi Elgringo, Thank you so much it works. :-) One question, why is that I have Auth and Sites are showing up when my "class Admin: pass" were wrong way of coding still works? Hi Ramiro, I wasn't sure what you mean by copy/paste error and inner class but Elgringo clearly what you were saying. Than

Re: Django Book: The Django Administration Site

2008-01-06 Thread elgringo
Like Ramiro says. It's an indentation issue. Your nested class Admin: pass statement needs to be one and only one level of indentation below the top class declaration for each class that you're defining: class Publisher(model.Model): ... class Admin: pass class Foo(model.Model):

Re: Django Book: The Django Administration Site

2008-01-06 Thread Ramiro Morales
On Jan 6, 2008 5:10 PM, Mikey3D <[EMAIL PROTECTED]> wrote: > [...] > from django.db import models > > class Publisher(models.Model): > name = models.CharField(max_length=30) > address = models.CharField(max_length=50) > city = models.CharField(max_length=60) > state_province = mode

Re: Django Book: The Django Administration Site

2008-01-06 Thread Mikey3D
Hi goober, I have done your suggestions before or I won't be able to create a superuser, right? I could login and there is no Ch6 but only Auth and Sites in Admin Interface. So I try again your suggestions: In command: python manage.py sql books "OR" python manage.py sqlall books > the same dif

Re: Django Book: The Django Administration Site

2008-01-06 Thread goober
wrote: > Hi, I'm reading thoroughly the new django book and on page 86, the > figure 6-2, why didn't the Django Administration Site showing Ch6 > except only Auth and Sites showing? I have trying all morning to > figure it out but can't. > > Here are my files: &

Django Book: The Django Administration Site

2008-01-06 Thread Mikey3D
Hi, I'm reading thoroughly the new django book and on page 86, the figure 6-2, why didn't the Django Administration Site showing Ch6 except only Auth and Sites showing? I have trying all morning to figure it out but can't. Here are my files: # Django settings for mysite project

Re: Django Administration

2007-05-23 Thread samira
Thanks alot. I can find it. another thing, as you can see in tables all records treted like object, do you think iut has a way to change this? for example when click to one table, primary keys of it sorted. On May 13, 11:47 am, Baurzhan Ismagulov <[EMAIL PROTECTED]> wrote: > On Sun, May 13, 2007

Re: Django Administration

2007-05-13 Thread Baurzhan Ismagulov
On Sun, May 13, 2007 at 12:18:22AM -0700, samira wrote: > I don't congifured it, how I can do this? > the error message is this"Not Found > The requested document was not found on this server." Are you using the apache web server? http://www.djangoproject.com/documentation/modpython/ may be helpf

Re: Django Administration

2007-05-13 Thread samira
I don't congifured it, how I can do this? the error message is this"Not Found The requested document was not found on this server." On May 13, 10:14 am, Baurzhan Ismagulov <[EMAIL PROTECTED]> wrote: > Hello samira, > > On Sun, May 13, 2007 at 12:03:13AM -0700, samira wrote: > > I want to use Adj

Re: Django Administration

2007-05-13 Thread samira
I don't congifured it, how I can do this? the error message is this"Not Found The requested document was not found on this server." --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to th

Re: Django Administration

2007-05-13 Thread samira
I don't congifured it, how I can do this? the error message is this"Not Found The requested document was not found on this server." --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to th

Re: Django Administration

2007-05-13 Thread samira
I don't congifured it, how I can do this? the error message is this"Not Found The requested document was not found on this server." --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to th

Re: Django Administration

2007-05-13 Thread Baurzhan Ismagulov
Hello samira, On Sun, May 13, 2007 at 12:03:13AM -0700, samira wrote: > I want to use Adjango administrator. that is correct in my local, I > access to it throw this address: http://127.0.0.1:8000/admin/. but I > don't know how I can accees in my domain? Which web server are you using? Have you

Django Administration

2007-05-13 Thread samira
Hello All, I want to use Adjango administrator. that is correct in my local, I access to it throw this address: http://127.0.0.1:8000/admin/. but I don't know how I can accees in my domain? I put my domain Ip instead od localhost Ip, but it is not work :( could anybody help me? --~--~-~-