Re: Display Many to Many Field in Django admin site

2018-04-03 Thread mansi thakkar
; Hello , >> >> In my database, there is one table named Product and the other table is >> Ingredient. Both are related with ManyToMany Relationship using bridge >> entity (table) named ProductIngredient. >> >> I am trying to display Many To Many field named ingred

Re: Display Many to Many Field in Django admin site

2018-04-03 Thread squal poreover
nship using bridge > entity (table) named ProductIngredient. > > I am trying to display Many To Many field named ingredient in my Django > admin site. > > Here is the attached code and screen shot of the error. > > I would like to know the solution of this error and

Re: A problem about database structure and displacement on django admin

2018-03-27 Thread Mike Dewhirst
On 28/03/2018 3:42 AM, shawn...@gmail.com wrote: Hi everyone, I am currently working on django and get confused about how to design the model. Right now, I have a table named 'Reactionmeta' which structure like below:      1             2              3                     4                  

A problem about database structure and displacement on django admin

2018-03-27 Thread shawnmhy
Hi everyone, I am currently working on django and get confused about how to design the model. Right now, I have a table named 'Reactionmeta' which structure like below: 1 2 3 4 5 6

Re: How to undisplay the field with empty value in django admin?

2018-03-27 Thread shawnmhy
Dear Cictani: Thank you for your detailed information. Just to be clarified, I need to mention that in one reaction, one stoichiometry belongs to only one metabolites. But one metabolite might involves in multiple reactions. For example: a + 2b +c -> c + 3d(the number before each letter is

Re: How to undisplay the field with empty value in django admin?

2018-03-25 Thread Cictani
Hi, yes you can create a new python file in your app folder in order to run it you can enter django shell: python manage.py shell Let's say your app is called 'chem' and your file is called 'helpers.py' in there you have defined a function called: 'convert_reactions_meta'. Then you can run

Re: How to undisplay the field with empty value in django admin?

2018-03-25 Thread shawnmhy
Dear Cictani: Thank you for your suggestion. But how I write the script? I mean do I need to write another py file in my project? And still, how do I deal with the database of stoichiometrymeta class? Since there is no table corresponding to this class in my database, so I think I can't run

Re: How to undisplay the field with empty value in django admin?

2018-03-24 Thread Cictani
After adding the new model and doing the migration you have to write a small script which will convert the data. You have to go through all the Reactionsmeta objects with for reaction in Reactionsmeta.objects.all(): Then within the for loop you have to create another for loop which will go

Re: How to undisplay the field with empty value in django admin?

2018-03-24 Thread shawnmhy
Dear Cictani: Thank you for your great kindness! However, if I create the additional model which maybe called stoichiometry metabolite, then I should I arrange the database t accommodate this class? To make my question better understood, I posted my database of Reactionmeta as below:

Re: How to undisplay the field with empty value in django admin?

2018-03-24 Thread Cictani
Grammarly messed up my post quite badly... You should set the extra attribute to 0 (so only if there is data admin will display an entry. If you set it to 6 it will display 6 empty entries but that's what you wanted to prevent) In your admin.py you have to create an InlineAdmin for >

Re: How to undisplay the field with empty value in django admin?

2018-03-24 Thread Cictani
Sorry it is not a many to many relation anymore but a one to many (from the new models perspective) Am Samstag, 24. März 2018 11:24:48 UTC+1 schrieb Cictani: > > > I think you have a misconception in your model. What you need is a* many > to many* relation so it does not matter how many

Re: How to undisplay the field with empty value in django admin?

2018-03-24 Thread Cictani
Hi, I think you have a misconception in your model. What you need is a many to many relation so it does not matter how many metabolites each Reaction has. I am not so fimilar with Chemistry. So each stoichiometry belongs to exactly one metabolite? if yes you could create an additional Model

How to undisplay the field with empty value in django admin?

2018-03-23 Thread shawnmhy
action in metabolite3,4,5,6...columns and stoichiometry 3,4,5,6...columns. In that case, how can I only display the Charfield with data while undisplay those Charfield with no value in django-admin? -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: django-admin makemessages --no-obsolete doesn't seem to be working

2018-03-19 Thread Ramiro Morales
On Sun, Mar 18, 2018 at 11:18 AM, Kishor Pawar wrote: > First of all, I am expecting `--no-obsolete` would comment out `msgid` and > `msgstr` if `gettext` is deleted, right? > AFAIK there is no (and there wasn't ever) a `--no-obsolete` modifier to the makemessages command.

Re: django-admin makemessages --no-obsolete doesn't seem to be working

2018-03-19 Thread Kishor Pawar
All my emails never are responded, i'm thinking they not going to discussion list. Someone can reply anything just to let me know. On Sun, 18 Mar 2018 at 19:48 Kishor Pawar wrote: > First of all, I am expecting `--no-obsolete` would comment out `msgid` and > `msgstr` if

django-admin makemessages --no-obsolete doesn't seem to be working

2018-03-18 Thread Kishor Pawar
First of all, I am expecting `--no-obsolete` would comment out `msgid` and `msgstr` if `gettext` is deleted, right? How I am testing is: 1. I wrote `gettext("some string here")` in view 2. I ran `makemessages` command 3. It wrote a `.po` file as expected 4. Then I deleted `gettext()` line

Showing only current user in Django admin

2018-03-17 Thread 'Simon Connah' via Django users
I'm just making my first Django app in a very long time, and I have forgotten most of what I learnt. I'm using the built-in admin panel for ease of use, and it seems to be working well, with one exception. I have a BlogPost model with the usual things in it. One of the fields is a FK to the

Re: Borrowing functionality from Django Admin forms

2018-03-08 Thread Andy
Take a deeper look at the *RelatedFieldWidgetWrapper (https://github.com/django/django/blob/1.3.2/django/contrib/admin/widgets.py#L200)* Am Mittwoch, 7. März 2018 21:11:18 UTC+1 schrieb Justin Johnson: > > I have a user who saw how new objects can be created using the Admin > forms, and asked

Borrowing functionality from Django Admin forms

2018-03-07 Thread Justin Johnson
I have a user who saw how new objects can be created using the Admin forms, and asked if I could reproduce some of that functionality. I'm still new to Django, and even newer to building forms. I'm wondering if there is a way to "borrow" elements from the Admin forms into my own forms and

Change Django admin behaviour

2018-03-07 Thread Hervé Edorh
I have 3 models, the idea is that i can do many test on one product and a product can be removed of my stock (insert values in out table) by peoples. In django admin how can i do for blocking to insert values in Test table when the product is in the out table(inserted in the out table

Re: django admin css not loading in localhost

2018-02-22 Thread Mike Dewhirst
On 23/02/2018 11:49 AM, anurag bhadauriya wrote: i am using django-1.11.6. whenever i open my admin panel and login to it then it looks like the simple html file. no any css files are loading .The interface i am seeing is totally different than that of the tutorials using which i am

Re: django admin css not loading in localhost

2018-02-22 Thread Costja Covtushenko
Hi, Can you provide html code of that page here? Regards, Constantine C. > On Feb 22, 2018, at 7:49 PM, anurag bhadauriya > wrote: > > i am using django-1.11.6. whenever i open my admin panel and login to it then > it looks like the simple html file. no any css

django admin css not loading in localhost

2018-02-22 Thread anurag bhadauriya
i am using django-1.11.6. whenever i open my admin panel and login to it then it looks like the simple html file. no any css files are loading .The interface i am seeing is totally different than that of the tutorials using which i am learning.please give me the stepwise solution -- You

Re: NoReverseMatch error raise when adding a new entry in django admin

2018-02-12 Thread Julio Biason
Hi Weifeng, I think the problem is here: django.urls.exceptions.NoReverseMatch: Reverse for 'nmm_tokenservice_userprofile_change' with arguments '('',)' not found. 1 pattern(s) tried: ['admin/nmm_tokenservice\\/userprofile\\/(?P.+ )\\/change\\/$'] By all the Django is saying, you're trying to

Re: NoReverseMatch error raise when adding a new entry in django admin

2018-02-12 Thread Etienne Robillard
Hi Weifeng, plz show us your urls.py... Etienne Le 2018-02-11 à 22:20, Weifeng Pan a écrit : I got this wired issue. who can help. Python 3.6 Django Latest 2.0.2 following are stack trace--- Internal Server Error: /admin/nmm_tokenservice/userprofile/add/ Traceback

NoReverseMatch error raise when adding a new entry in django admin

2018-02-11 Thread Weifeng Pan
I got this wired issue. who can help. Python 3.6 Django Latest 2.0.2 following are stack trace--- Internal Server Error: /admin/nmm_tokenservice/userprofile/add/ Traceback (most recent call last): File "C:\Python36\lib\site-packages\django\core\handlers\exception.py",

Re: Django Admin Form clean method override only working for one exception

2018-01-04 Thread dean raemaekers
project.com/en/2.0/ref/forms/validation/#cleaning-and-validating-fields-that-depend-on-each-other > ). > > On Thu, Jan 4, 2018 at 7:06 AM, dean raemaekers <dp.rae...@gmail.com > > wrote: > >> Hello, >> >> I am trying to override the Forms in the Django A

Re: Django Admin Form clean method override only working for one exception

2018-01-04 Thread Julio Biason
AM, dean raemaekers <dp.raemaek...@gmail.com> wrote: > Hello, > > I am trying to override the Forms in the Django Admin interface to have > custom exceptions in the clean() method. > > This works for my first validation, but it doesn't work for a second one > in the sa

Django Admin Form clean method override only working for one exception

2018-01-04 Thread dean raemaekers
Hello, I am trying to override the Forms in the Django Admin interface to have custom exceptions in the clean() method. This works for my first validation, but it doesn't work for a second one in the same form, or on another form at all. I am wondering if I have the syntax wrong for multiple

Re: django admin code modification

2017-12-25 Thread Jani Tiainen
Hi, Generic views are documented at https://docs.djangoproject.com/en/2.0/topics/class-based-views/ 24.12.2017 22.40 "Carl Brubaker" kirjoitti: > I am trying to make a customer database (name, address, etc) and I need to > be able to add new customers, edit customer

Re: django admin code modification

2017-12-24 Thread Carl Brubaker
I am trying to make a customer database (name, address, etc) and I need to be able to add new customers, edit customer info, delete customers, and search for them through name and phone number (and possibly more). When I enter the admin site and select my app, I have all of those fields given

Re: django admin code modification

2017-12-24 Thread Jani Tiainen
business logic. 23.12.2017 23.22 "Carl Brubaker" <itsbetter2cal...@gmail.com> kirjoitti: > So there are lots of things I like about the django admin, and somethings > I would like to change. Since django is kinda about not reinventing the > wheel, is there an "app&quo

django admin code modification

2017-12-23 Thread Carl Brubaker
So there are lots of things I like about the django admin, and somethings I would like to change. Since django is kinda about not reinventing the wheel, is there an "app" or file or something where I can find the admin information to modify it to what I want, and then save it as

Django Admin - Inline Edit using XEditable

2017-12-17 Thread Venugopal Vanarasi
Hi , There is a"list_editable" option in django admin if we wanted to make inline edits. I am trying to make the field editable on click (using xEditable): https://vitalets.github.io/x-editable/demo-bs3.html Here are the changes i did to implement the same: 1. $('#csname').edita

can't encode characters error while using django-admin

2017-11-29 Thread Javad Mokhtari Koushyar
Hi, this is the question: https://stackoverflow.com/questions/47560019/ascii-codec-cant-encode-characters-in-position-0-3-ordinal-not-in-range128?noredirect=1#comment82077811_47560019 thank you. -- You received this message because you are subscribed to the Google Groups "Django users" group.

Re: Django admin pagination zero based?

2017-11-28 Thread Matemática A3K
On Tue, Nov 28, 2017 at 3:00 PM, Daniel Jewett wrote: > I just noticed that the URL get string in my admin app is off by one from > the auto generated pagination links. It appears that the pagination URLs > are zero based. > > For example if I'm on page 4 of results

Django admin pagination zero based?

2017-11-28 Thread Daniel Jewett
I just noticed that the URL get string in my admin app is off by one from the auto generated pagination links. It appears that the pagination URLs are zero based. For example if I'm on page 4 of results according to the pagination links, the URL looks like '?p=3' Is this typical? Any

Re: ManytoMany field in Django admin not appearing

2017-11-05 Thread mohammad k
com> wrote: > use this code for ManytoMany fields in django admin : > > filter_horizontal = ('groups', 'user_permissions',) > > On Fri, Nov 3, 2017 at 1:45 PM, Paul <sevenrrain...@gmail.com> wrote: > >> I have a Product model, an Image Model and a Category Model. >

Re: ManytoMany field in Django admin not appearing

2017-11-05 Thread mohammad k
use this code for ManytoMany fields in django admin : filter_horizontal = ('groups', 'user_permissions',) On Fri, Nov 3, 2017 at 1:45 PM, Paul <sevenrrain...@gmail.com> wrote: > I have a Product model, an Image Model and a Category Model. > > A Product can have multiple Ima

ManytoMany field in Django admin not appearing

2017-11-03 Thread Paul
= models.CASCADE) In Product Django Admin: class ProductDocumentInline(admin.TabularInline): model = ProductDocument class ProductAdmin(MetaData): inlines = [ProductImageInline] fieldsets = ( ('Product Data', { 'fields': ('name', 'short_description', 'description') }), ('SEO', { 'classes

Re: Close database connection for long running django-admin command

2017-11-01 Thread 18626427054
Did you solve this problem? On Thursday, August 25, 2016 at 1:16:36 AM UTC+8, Charanpal Dhanjal wrote: > > Hi all, > > I am using GeoDjango and I have a django-admin command that does some > route calculations for approximately 24 hours and then saves the results to >

Re: Django admin: is there an event, or another way to call a Javascript function, when a Django Admin Popup (the green plus icon) completes ?

2017-09-30 Thread 'Federico Capoano' via Django users
Opened a new thread on django-developers: https://groups.google.com/d/msg/django-developers/BsudgRRCKb4/airBUyhaAwAJ On Saturday, September 30, 2017 at 6:32:51 PM UTC+2, Federico Capoano wrote: > > Hi James, > > I was banging my head on the wall for this issue, you saved me some > precious

Re: Django admin: is there an event, or another way to call a Javascript function, when a Django Admin Popup (the green plus icon) completes ?

2017-09-30 Thread 'Federico Capoano' via Django users
Hi James, I was banging my head on the wall for this issue, you saved me some precious time, thank you! I wonder why such a mechanism is not included by default into Django, I will bring up this issue on the development mailing list. Federico On Thursday, November 26, 2015 at 11:58:22 AM

Re: The Django admin documentation generator / Commands

2017-09-20 Thread Mike Dewhirst
On 21/09/2017 11:24 AM, Simon Charette wrote: Hello Juan, The admindocs contrib app doesn't expose management command documentation yet. You could submit a feature request to add it but the app hasn't received a lot of interest in past years I think "interest" is the wrong word.

The Django admin documentation generator / Commands

2017-09-20 Thread Juan Francisco Mosquera
Does anybody know how add documentation to django custom commands ? , All examples are about views,models , filters but not show commands. Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

Re: changing row color in django admin model

2017-09-12 Thread Derek
If you use django-suit as a custom (and much upgraded!) admin interface, this facility is built-in. See http://djangosuit.com/ and look for the section "List row and cell attributes" On Tuesday, 12 September 2017 08:54:01 UTC+2, vishnu bhand wrote: > > hello ,How should i change entire row

changing row color in django admin model

2017-09-12 Thread vishnu bhand
hello ,How should i change entire row color base on some attribute value in admin model ? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: Django Documentation 1.7 shows "django-admin.py" whereas it should be "django-admin"

2017-09-11 Thread Deep Sukhwani
The answer is in the first post in this thread! -- Regards Deep L Sukhwani On 11 September 2017 at 10:51, margana harika wrote: > > hello sir, >even i got the same problem can you just tell me how did > you solve this please!! > > -- > You received

Re: Django Documentation 1.7 shows "django-admin.py" whereas it should be "django-admin"

2017-09-11 Thread margana harika
hello sir, even i got the same problem can you just tell me how did you solve this please!! -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: Integrate and use AdminLTE2 template as frontend separate from django admin backend

2017-08-22 Thread Óscar M . Lage
> > > Any suggestion on how to do it quickly? > What about django-cruds-adminlte? https://github.com/oscarmlage/django-cruds-adminlte -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails

Integrate and use AdminLTE2 template as frontend separate from django admin backend

2017-08-21 Thread ledzgio
be separated from default django admin site. Any suggestion on how to do it quickly? thank you -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-user

Multilevel display for a model in Django admin

2017-08-16 Thread Sahana Prabhakar
I have a model as follows : class Transaction(models.Model): transaction_id = models.AutoField(primary_key=True) transaction_unique_id = models.CharField(max_length=100, null=True, blank=True, unique=True) route_id = models.ForeignKey(FlightScheduleDetail, null=False,

Re: Django admin raises CSRF verification failed when changing from DEBUG True - > False

2017-08-11 Thread Ruben Alves
Same problem here. I've created a ticket: https://code.djangoproject.com/ticket/28488 -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: Django admin raises CSRF verification failed when changing from DEBUG True - > False

2017-08-11 Thread Ruben Alves
Same problem here. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to

Re: Unable to extend User model and see it in Django Admin

2017-07-29 Thread Vijay Khemlani
AUTH_USER_MODEL should point to your model class, not the model admin use AUTH_USER_MODEL = 'user_text.User' Assuming that the app where the User model lives is called "user_text" On Sat, Jul 29, 2017 at 12:56 PM, Binny Zupnick wrote: > I've tried many things, but I'll

Unable to extend User model and see it in Django Admin

2017-07-29 Thread Binny Zupnick
I've tried many things, but I'll write what I currently have implemented. admin.py admin.site.register(User, UserAdmin) models.py class User(AbstractUser): phone = models.CharField(max_length=40, unique=True) settings.py AUTH_USER_MODEL = 'user_text.UserAdmin' I do `makemigrations` and I'm

Django Admin Inline Duplicate Queries , Slows view

2017-07-27 Thread Ravi Sethia
Hi, While displaying an object with human readable name in django admin view Debug_toolbar tells me that sql queries are being duplicated upto 100 times whenever a foreign key is part of the model and rendered in human readable format Eg this code renders admin panel slow if there are lot

Re: Filefield uploads in django admin

2017-06-06 Thread Melvyn Sopacua
On Tuesday 06 June 2017 08:59:06 Tim Graham wrote: > The default behavior of FileSystemStorage is, "If a file with name > already exists, an underscore plus a random 7 character alphanumeric > string is appended to the filename before the extension." Do you want > to always overwrite existing

Re: Filefield uploads in django admin

2017-06-06 Thread Tim Graham
The default behavior of FileSystemStorage is, "If a file with name already exists, an underscore plus a random 7 character alphanumeric string is appended to the filename before the extension." Do you want to always overwrite existing files if a file with that name already exists? That's a bit

Filefield uploads in django admin

2017-06-06 Thread Andy Cheesman
Hi everyone I've a problem using filefields in the admin module.I've a standard model which is has a FileField (which I use to upload pdfs) When I'm in the administration console and attempt to upload a pdf, the filename is modified from name.pdf to name_.pdf. I would like the uploaded

django-admin makemessages PermissionError [WindError 32] and OsError [Errno 22]

2017-06-01 Thread np
Hi, I am using custom fabric script to make .po-files for i18n. The problem is, "django-admin makemessages" keeps on crashing. It also leaves undeleted .html.py files. I can reproduce this error also by using plain "django-admin makemessages -l pt". I think this problem

Re: ANN: django-admin-tools 0.8.1 released

2017-05-30 Thread 'Abraham Varricatt' via Django users
By chance do you have any screenshots in your documentation? -Abraham V. On Tuesday, May 30, 2017 at 8:39:54 AM UTC-4, izi wrote: > > Hello, > > We are happy to announce the availability of the version 0.8.1 of > django-admin-tools: > https://pypi.python.org/pypi/django

ANN: django-admin-tools 0.8.1 released

2017-05-30 Thread David Jean Louis
Hello, We are happy to announce the availability of the version 0.8.1 of django-admin-tools: https://pypi.python.org/pypi/django-admin-tools/0.8.1 Django-admin-tools is a collection of extensions/tools for the default django administration interface, it includes: * a full featured

django admin ajax file upload

2017-05-09 Thread Olivier Dalang
Hi ! Here we use Django admin as main input interface for our staff in the field. Our models have image fields, where the staff directly loads images from the camera. There are two main problems : - the form is very slow to submit, as everything is uploaded at once, at the very end, even

Re: Where is django-admin?

2017-05-02 Thread Pelle Pälsänger
on windows10. > I have downloaded django1.11 ($git clone > https://github.com/django/django.git) and installed it ($py -m pip > install Django==1.11). > I follow > https://pythonprogramming.net/django-web-development-with-python-intro/ > > Then I try to start a project with

Re: Where is django-admin?

2017-05-02 Thread Pelle Pälsänger
go==1.11). > I follow > https://pythonprogramming.net/django-web-development-with-python-intro/ > > Then I try to start a project with django-admin startproject mySite, but > django-admin is not recognized as a command. I search for django-admin but > I cannot find it. Tell

Re: Where is django-admin?

2017-05-02 Thread Pelle Pälsänger
Yes, I have done that and made (myvenv) C:\Users\stig\djangogirls\myvenv\Scripts>django-admin.py startproject mysite . , but no djangogirls\mysite created. My django-admin looks like below. Maybe something should be added to make it work? #!c:\users\stig\djangogirls\myvenv\scripts\python.

Re: Change password using django ADMIN

2017-04-29 Thread ludovic coues
Do you mind sharing your urls.py files and the files used to generate that URL ? On 28 Apr 2017 1:20 pm, "Reynaldo Bernard" wrote: > When i change LANGUAGE_CODE = 'en-us' to 'es-mx' and i try to change > password from USER TABLE (default in Django) i got the next

Re: Where is django-admin?

2017-04-28 Thread shahab emami
it ($py -m pip >> install Django==1.11). >> I follow >> https://pythonprogramming.net/django-web-development-with-python-intro/ >> >> Then I try to start a project with django-admin startproject mySite, but >> django-admin is not recognized as a command. I searc

Change password using django ADMIN

2017-04-28 Thread Reynaldo Bernard
When i change LANGUAGE_CODE = 'en-us' to 'es-mx' and i try to change password from USER TABLE (default in Django) i got the next error Check this video to see it :

Re: Where is django-admin?

2017-04-28 Thread Pelle Pälsänger
.11 ($git clone > https://github.com/django/django.git) and installed it ($py -m pip > install Django==1.11). > I follow > https://pythonprogramming.net/django-web-development-with-python-intro/ > > Then I try to start a project with django-admin startproject mySite, but

Re: Where is django-admin?

2017-04-28 Thread Pelle Pälsänger
go==1.11). > I follow > https://pythonprogramming.net/django-web-development-with-python-intro/ > > Then I try to start a project with django-admin startproject mySite, but > django-admin is not recognized as a command. I search for django-admin but > I cannot find it. Tell

Re: Where is django-admin?

2017-04-28 Thread Andréas Kühne
h django on windows10. >> I have downloaded django1.11 ($git clone https://github.com/django/djan >> go.git) and installed it ($py -m pip install Django==1.11). >> I follow https://pythonprogramming.net/django-web-development-with-py >> thon-intro/ >> >> Then I try

Re: Where is django-admin?

2017-04-28 Thread Pelle Pälsänger
installed it ($py -m pip > install Django==1.11). > I follow > https://pythonprogramming.net/django-web-development-with-python-intro/ > > Then I try to start a project with django-admin startproject mySite, but > django-admin is not recognized as a command. I search for django

Re: Where is django-admin?

2017-04-28 Thread ludovic coues
t) and installed it ($py -m pip install Django==1.11). I follow https://pythonprogramming.net/django-web-development-with- python-intro/ Then I try to start a project with django-admin startproject mySite, but django-admin is not recognized as a command. I search for django-admin but I cannot find

Re: Django admin base.html template

2017-04-27 Thread Mike Dewhirst
For example - see below On 28/04/2017 3:38 PM, Mike Dewhirst wrote: I would like to suggest a small change to contrib/admin/templates/admin/base.html ... 33{% block userlinks %} 34{% if site_url %} 35{% trans 'View site' %} / 36

Django admin base.html template

2017-04-27 Thread Mike Dewhirst
I would like to suggest a small change to contrib/admin/templates/admin/base.html ... 33{% block userlinks %} 34{% if site_url %} 35{% trans 'View site' %} / 36{% endif %} 37{% if user.is_active and user.is_staff %}

Where is django-admin?

2017-04-27 Thread Pelle Pälsänger
==1.11 Then django-admin startproject mysite fails because django-admin is not recognized. I cannot find it? Where is the result of the installation with django-admin? I work with Windows10. BR. Pelle -- You received this message because you are subscribed to the Google Groups "Django u

Where is django-admin?

2017-04-27 Thread Pelle Pälsänger
to start a project with django-admin startproject mySite, but django-admin is not recognized as a command. I search for django-admin but I cannot find it. Tell me why? Where should I find it, to add it to path!? BR. Pelle -- You received this message because you are subscribed to the Google

Testing Django Admin with Selenium

2017-04-16 Thread Derek
Python 3.5; Django 1.10.7 I am struggling to get access to the admin pages via Selenium. I assume the issue is with the user login not being set properly - I don't want to go via the login page/form every time, so was attempting the session approach. Below is the code that shows the problem.

Re: django admin datepicker

2017-03-30 Thread Mike Dewhirst
On 31/03/2017 7:55 AM, sum abiut wrote: Hi, i am trying to use django admin datepicker on my custom form to have it show on two fields but when i run the app it only showing on one field, the start_date but not showing on end_date. can some please point me to the right direction. What

django admin datepicker

2017-03-30 Thread sum abiut
Hi, i am trying to use django admin datepicker on my custom form to have it show on two fields but when i run the app it only showing on one field, the start_date but not showing on end_date. can some please point me to the right direction. here is my quote. models.py class stafleave

Re: Django admin custom filter: ProgrammingError: more than one row returned by a subquery used as an expression

2017-03-22 Thread Camilo Torres
turn quryset.annotate(quote_len=Length('quote_text')).filter(quote_len__lt=30) Notice extra() is deprecated. On Wednesday, March 22, 2017 at 12:25:02 AM UTC-4, kholidfu wrote: > > Hi, I'm trying this custom filter query for django admin > > return queryset.extra(select = {'val

Django admin custom filter: ProgrammingError: more than one row returned by a subquery used as an expression

2017-03-21 Thread kholidfu
Hi, I'm trying this custom filter query for django admin return queryset.extra(select = {'val': "select id from web_quote WHERE character_length(quote_text) < 30"}) and I got something like this: Programming error: more than one row returned by a subquery used as an expression

Customs Django Admin "add" view.

2017-03-13 Thread Daniel Gola
Hello Everyone, I trying to figure out how to override admin add view for specific app. I've read docs and have found some information about get_urls() method, but It is not clear for me and nice examples are lacking there... Could you help me? I will be grateful for you support. Best

Re: USING graphs in django admin

2017-03-06 Thread chris rose
i have used d3.js in a template and past it data when answering a http request with a view i found d3.js a little interesting to wrap my head around but it is a good tool not used it with the admin though -- You received this message because you are subscribed to the Google Groups "Django

Re: can i use the listview which the django-admin used im my tempate

2017-03-05 Thread Andréas Kühne
here : https://docs.djangoproject.com/en/1.10/ref/class-based-views/generic-display/#listview Regards, Andréas 2017-03-05 9:46 GMT+01:00 刘夏 <liuxia19872...@qq.com>: > can i use the listview which the django-admin used im my tempate? > > > > 发自我的小米手机 > > -- > You rec

can i use the listview which the django-admin used im my tempate

2017-03-05 Thread 刘夏
can i use the listview which the django-admin used im my tempate? 发自我的小米手机 -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-user

Re: Issue using django-admin

2017-03-05 Thread chris rose
if you are new to django you don't want to download the development edition, this is more for contributing firstly you need pip. secondly, do your self a huge favour and install virtualenv and read the getting started docs now rather than later once you have made a virtualenv directory and

Re: Issue using django-admin

2017-03-03 Thread Kyle
I am running into the same situation as described above. How does symlinking solve my problem? That is, where do I symlink to, and how does that tell my computer where django-admin is? On Monday, September 19, 2016 at 6:09:29 AM UTC-5, Bharathi Raja wrote: > > As said in docs &g

Re: USING graphs in django admin

2017-03-03 Thread Luvpreet Singh
> -- > The most dangerous phrase in the language is, "We've always done it this > way." > > - Grace Hopper > > On 3 March 2017 at 21:22, Luvpreet Singh <s.luvp...@gmail.com > > wrote: > >> I want to display graphs in django admin. Is there any tool

Re: USING graphs in django admin

2017-03-03 Thread Lachlan Musicman
wrote: > I want to display graphs in django admin. Is there any tool to display > them in django admin site ? > > > I have tried django-admin-tools-stat , but I don't want to create a > different dashboard for the graphs. > > > I want the queries on the models to be displayed wi

USING graphs in django admin

2017-03-03 Thread Luvpreet Singh
I want to display graphs in django admin. Is there any tool to display them in django admin site ? I have tried django-admin-tools-stat , but I don't want to create a different dashboard for the graphs. I want the queries on the models to be displayed with the help of those graphs

Pressing enter/return key does not submit the list_editable in Django admin

2017-03-02 Thread Leo Shao
I'm assuming this is because there are two submit buttons in one form and when pressing enter (while focused on an input), it submits the action (e.g. delete) rather than the list_editable. When I press enter (while focused on an 'hours' input), it reacts

Re: Django Tutorial Part 2 - Model not showing up on Django Admin

2017-02-23 Thread t0mgs
roject.com/en/1.10/intro/tutorial02/#make-the-poll-app-modifiable-in-the-admin> >> there's >> a section in which we are to modify our `admin.py` file in order to make >> sure the Django admin site recognizes our objects and pulls them up when it >> is loaded. >>

Re: Many to Many in Django Admin

2017-02-23 Thread Melvyn Sopacua
On Thursday 23 February 2017 05:22:25 José Vicente Jonas França wrote: > I Like to know if its possible to display the many-to-many field in > both pages of Model at Django Admin. > If it is possible how can i do this? All available in the documentation[1]. -- Melvyn Sopacua --

Many to Many in Django Admin

2017-02-23 Thread José Vicente Jonas França
Hello! I Like to know if its possible to display the many-to-many field in both pages of Model at Django Admin. If it is possible how can i do this? Thanks. Best Regards, José Vicente. -- You received this message because you are subscribed to the Google Groups "Django users&q

Re: Django Tutorial Part 2 - Model not showing up on Django Admin

2017-02-22 Thread Dylan Reinhold
modify our `admin.py` file in order to make > sure the Django admin site recognizes our objects and pulls them up when it > is loaded. > > I'm not sure if that's a glitch in the actual tutorial, and I imagine it's > not, but for the life of me I can't figure out the problem. > >

Django Tutorial Part 2 - Model not showing up on Django Admin

2017-02-22 Thread t0mgs
` file in order to make sure the Django admin site recognizes our objects and pulls them up when it is loaded. I'm not sure if that's a glitch in the actual tutorial, and I imagine it's not, but for the life of me I can't figure out the problem. I've managed to: 1. 2. 1. Registered

Re: Timeout when saving model in django admin page

2017-02-21 Thread Melvyn Sopacua
On Tuesday 21 February 2017 13:11:19 John, Steffen wrote: > Using celery, is it possible to prevent the user from doing other > things in the admin tool until the celery task is done? Sorta kinda. But the django admin can facilitate part of it. Look into the ModelAdmin.has_FOO_perm

<    1   2   3   4   5   6   7   8   9   10   >