Re: Django for desktop app development

2018-09-09 Thread Gerald Brown
I have created something similar to this.  My setup is a 2 system IntrAnet ( not Internet). One system is being used as a web server running Nginx & Django with a Mariadb database.  I also had to install a wireless router.  The server system is using the Django Admin system as there are only 2

Re: models.py => Mandatory to create tables?

2018-09-07 Thread Gerald Brown
There should be a models.py file under each of your applications. On Friday, 07 September, 2018 10:06 PM, Benjamin SOULAS wrote: Hi everyone, Quick question I do not find the answer: does models have to located into *models.py* script? It believe not, If I got a project composed of 100 table

Re: text editor

2018-09-03 Thread Gerald Brown
The best editor is the ONE that works BEST for YOU!!! Try several and then pick the one that YOU like the best.  Everyone has their personal favorites!!! On Monday, 03 September, 2018 09:08 AM, Joel wrote: One can carry on discussion about something as subjective as "best text editor" for day

Re: Unrecognizable error

2018-08-17 Thread Gerald Brown
I used to get this error if I was NOT in my virtual environment. On Friday, 17 August, 2018 12:54 PM, Vikrant Gupta wrote: I'm trying to migrate two Classes in Django using Pycharm. The error is as follow python manage.py makemigrations --name initial polls   File "manage.py", line 16     )fr

Re: Django Generic Date Views

2018-08-09 Thread Gerald Brown
ant the records for today which I then use to create a reportlab pdf file? Prior to trying to use these generic date views I was able to generate the file but only for the current date. Are there any more suggestions? TIA... On Thursday, 09 August, 2018 06:14 PM, Michal Petrucha wrote: On Wed, Aug

Re: Django Generic Date Views

2018-08-08 Thread Gerald Brown
As far as I know both "vi" and "queryset" are variable names and can be called "anything" On Thursday, August 9, 2018 at 12:08:07 AM UTC+8, Jason wrote: > > also, I note you don't set the queryset field in your view class. you set > it to `vi`. that's probably an issue there > > eg > > from d

Re: Django Generic Date Views

2018-08-08 Thread Gerald Brown
On Wednesday, August 8, 2018 at 8:15:21 PM UTC+8, Jason wrote: > > what have you tried so far? What issues are you having with the > documentation examples? > > "can't get them to work" is really uninformative, RIGHT. > What I tried was the TodayArchiveView by following the docs. When I enter

Django Generic Date Views

2018-08-08 Thread Gerald Brown
Greetings: Tonight I discovered something at https://docs.djangoproject.com/en/2.1/ref/class-based-views/generic-date-based/ that I thought is just what I am looking for. The only problem is I can't get them to work. They are designed to present views by Year, Month, Week, Day, Today or spec

Re: django models

2018-08-08 Thread Gerald Brown
120, in __init__     raise ImproperlyConfigured("The SECRET_KEY setting must not be empty.") django.core.exceptions.ImproperlyConfigured: The SECRET_KEY setting must not be empty. On Wed, Aug 8, 2018 at 6:22 AM, Gerald Brown <mailto:gsbrow...@gmail.com>> wrote: Just de

Re: django models

2018-08-07 Thread Gerald Brown
Just delete the code in models.py and run ./manage.py makemigrations and ./manage.py migrate. On Wednesday, 08 August, 2018 01:14 AM, Ramandeep Kaur wrote: My question is that how to delete models in django? -- You received this message because you are subscribed to the Google Groups "Django

Re: Django ORM aggregate Sum function on foreign key

2018-08-07 Thread Gerald Brown
/ program uses vi. I would like to create a schema.sql to use with Python. KN On Mon, Aug 6, 2018 at 4:08 PM, Gerald Brown <mailto:gsbrow...@gmail.com>> wrote: This is how I finally solved my problem!!! The following is a copy of my ORM statement:  Visit.objects.filter(v

How to pass variable dates to a ORM query

2018-08-06 Thread Gerald Brown
I have a Django/Python function that creates a Reportab PDF file based on the current date. Works GOOD. Now I want to pass any date to that function and have it create a PDF based on the new date. I tried creating another function that generates the date (yesterday) but I am not able to pass

Re: Django ORM aggregate Sum function on foreign key

2018-08-06 Thread Gerald Brown
statement.  I don’t know what your field name is, but this assumes that it is “value”: aggregate(Sum(‘payment__value’)) *From:*django-users@googlegroups.com [mailto:django-users@googlegroups.com] *On Behalf Of *Gerald Brown *Sent:* Monday, August 6, 2018 8:29 AM *To:* Django users *Subj

Django ORM aggregate Sum function on foreign key

2018-08-06 Thread Gerald Brown
Greetings: I am having a problem using the above function. In my table I have a field payment that is a foreign key to a payment table. When I try to use aggregate(sum('payment')) it gives me the sum of the foreign key, not the value from the payment table. Currently I have 9 records in my test

Re: [Question] Django 2 - how to sum values based on filter and group by Year-Month

2018-07-26 Thread Gerald Brown
I am having a similar problem where I want to get the total (SUM) of about 20 - 30 items in a current day.  I can get the list of customers names and payments in a html table but so far haven't been able to get the SUM of those payments.  I have tried using Django ORM AGGREGATE SUM('integer fie

Re: learn dijango

2018-07-26 Thread Gerald Brown
The best way to learn Django is to jump in and start using it. If you have problems there are many tutorials and web sites (including this one) to provide help and support. IMHO, a teacher CANNOT teach a student, all they can do is HELP the student learn. On Thursday, 26 July, 2018 01:55 PM

Re: How to automatically fill out an auto increment number in form field?

2018-07-23 Thread Gerald Brown
From "https://docs.djangoproject.com/en/2.0/topics/db/models/#automatic-primary-key-fields";, it has a further definition of automatic primary key fields.  In your model just add "(primary_key=True)" to po_number field. On Tuesday, 24 July, 2018 07:54 AM, Michael MacIntosh wrote: Hi, Aren'

Re: How to fix "App 'polls' could not be found. Is it in INSTALLED_APPS?"

2018-07-23 Thread Gerald Brown
Don't use SUDO, just python manage.py makemigrations.  Also the "POLLS" is not necessary. On Monday, 23 July, 2018 02:48 PM, Sitthiput Mongkolsri wrote: Hi, i'm new to django. Just learn from the tutorial and found this problem. I don't know how to fix this, wish someone could. Thanks. -- You

Re: Good up-to-date Django report builder addons

2018-07-22 Thread Gerald Brown
ttaz hejaze wrote: gerald do you realy need a package to do this , couse i think its not that hard to code by you ! i think there are time intervals functions in datetime and in django timezone you can use .. On Sun, 22 Jul 2018, 11:07 Gerald Brown, <mailto:gsbrow...@gmail.com>> wrote:

Re: Good up-to-date Django report builder addons

2018-07-22 Thread Gerald Brown
?  Did you have better results? Thanks. On Sunday, 22 July, 2018 04:49 PM, Melvyn Sopacua wrote: On zondag 22 juli 2018 10:34:17 CEST Gerald Brown wrote: I went to that site but sorry to say was UNABLE to find anything I could use as most are OUTDATED, written in Python 2.? ,Alpha or Beta

Re: Good up-to-date Django report builder addons

2018-07-22 Thread Gerald Brown
shop. The report I need to design is a simple 3 column report with a totals summary at the bottom. Again thanks for your info. On Friday, July 20, 2018 at 7:18:04 PM UTC+8, Gerald Brown wrote: > > Thanks for your info. Will check it out. > > On Friday, 20 July, 2018 07:02 PM,

Re: Djando 2.0.7 image handling problem on production server

2018-07-21 Thread Gerald Brown
I use pyvenvwrapper which I find is even better than pyenv.  Once a project is created just enter "workon proj-name" and it will take you to the project directory.  It can be found at: https://github.com/solovyevn/pyvenvwrapper On Sunday, 22 July, 2018 10:30 AM, mottaz hejaze wrote: thats wh

Re: Good up-to-date Django report builder addons

2018-07-20 Thread Gerald Brown
Thanks for your info.  Will check it out. On Friday, 20 July, 2018 07:02 PM, Jason wrote: Any time I have the question "Is there something in Django that will do this?", my first stop is https://djangopackages.org/ For example, their listings for reporting

Good up-to-date Django report builder addons

2018-07-20 Thread Gerald Brown
Does anyone know of any *GOOD, UP-TO-DATE* Django report builder add-ons? I was just working with Appy and discovered it was built with Python 2.? and I am using Python3.6.5. so I was getting a ton of errors. Even though the last release in Pypi was in April 2018 they are still using Python 2

Re: PROBLEM WITH DJANGO

2018-07-18 Thread Gerald Brown
You need a command after the "manage.py" like manage.py runserver, or manage.py makemigrations, or manage.py migrate, or manage.py shell or any other commands. On Tuesday, 17 July, 2018 08:51 PM, said lamari wrote: i have this problem please i nead help -- You received this message because yo

Re: Django foreign-key cannot assign must be a instance

2018-07-18 Thread Gerald Brown
Also when creating my models I use "id = models.AutoField(primary_key=True)" for my ID field.  This way Django will Auto generate an ID for each record. On Tuesday, 17 July, 2018 08:03 PM, Sainath Bavugi wrote: I am developing a web app using Django. I have created the table in MySQL database

Re: Django foreign-key cannot assign must be a instance

2018-07-17 Thread Gerald Brown
The way I do it is backwards from what you are doing.  I.E. I make the models first and then use ./manage.py makemigrations & ./manage.py migrate.  This way Django creates the tables AND the FK Indexes, which I think may be missing on your setup.  Now that you have the models try running the ab

Re: Admin CSS Not Working in Opera or UC Browser

2018-07-15 Thread Gerald Brown
One thing I noticed in your settings file is that you are missing a comma (,) at the end of your last application in the settings file. On Monday, 16 July, 2018 08:54 AM, Kayode Oladipo wrote: I recently sent in a query concerning my faulty admin css which loaded previously until an upgrade to

Re: Admin CSS Not Working in Opera or UC Browser

2018-07-15 Thread Gerald Brown
Have you tried FireFox? On Monday, 16 July, 2018 08:54 AM, Kayode Oladipo wrote: I recently sent in a query concerning my faulty admin css which loaded previously until an upgrade to v.2.0.5. I assumed the upgrade was responsible for this, so i downgraded back to my previous version (2.0.2) bu

Re: How is MySQL syntax for a table changed if I had a ManyToManyField?

2018-07-14 Thread Gerald Brown
When looking at my database it has the 3rd table for the ManyToMany with the following: 1. ID auto-generated, 2. Table1.ID 3. Table2.ID. All fields will be integers. The 3rd table will be named Table1_Table2 or something like that. I noticed in your code below that you do not have an ID fie

Re: django wamp

2018-07-07 Thread Gerald Brown
Is it possible to run 2 servers (Apache & Nginx) on the same system? Maybe if they listen on different ports i.e. 80 & 81 On Sunday, 08 July, 2018 01:09 PM, m1chael wrote: best not to fight Apache and just use nginx for django On Sat, Jul 7, 2018, 11:07 PM > wr

Re: help

2018-07-06 Thread Gerald Brown
:42 PM, Umar Kambala wrote: Please this wat I now hv am I correct? On_delete = models.PROTECT On Jul 6, 2018 11:28 AM, "Gerald Brown" <mailto:gsbrow...@gmail.com>> wrote: In any field that is a ForeignKey you now have to add "on_delete = ???" (there are a

Re: help

2018-07-06 Thread Gerald Brown
In any field that is a ForeignKey you now have to add "on_delete = ???" (there are a number of options to replace the ???). See the last line of the error message as it shows you the file and line number of where the error is. On Friday, 06 July, 2018 07:13 PM, Umar Kambala wrote: please th

Re: Django split screen

2018-06-29 Thread Gerald Brown
nd send both to a template that knows how to display both. On Fri, Jun 29, 2018 at 10:36 AM, Gerald Brown <mailto:gerbre...@gmail.com>> wrote: Has anyone ever heard of a way to split a screen in Django? What my client wants to do is to view a screen with the customers prev

Django split screen

2018-06-29 Thread Gerald Brown
Has anyone ever heard of a way to split a screen in Django? What my client wants to do is to view a screen with the customers previous history (scrollable but NOT editable) while entering new data for that customer. I think I will need a form for the data entery but I am not sure what I would

Re: how to pass the ID of a slected item in a list to ORM

2018-06-22 Thread Gerald Brown
Thanks for the reply. On Tuesday, 19 June, 2018 04:17 AM, C. Kirby wrote: Yes On Friday, June 15, 2018 at 10:07:01 PM UTC-4, Gerald Brown wrote: When I inspect the object in Firefox that is what it looks like because it is generated by Django. Does the user have to select an item

Re: how to pass the ID of a slected item in a list to ORM

2018-06-15 Thread Gerald Brown
your option tags look like | {{person.name}} | The submitted value for the field will be the patient_id, which you then use in your filter statement. On Friday, June 15, 2018 at 8:46:53 AM UTC-4, Gerald Brown wrote: Greetings: I have a form with a listbox that has people's name

Re: how to pass the ID of a slected item in a list to ORM

2018-06-15 Thread Gerald Brown
The ID is an integer as it is the ID for the table. The name is a VARCHAR. I have had this same problem in the past with other programming languages.  How to get my head around how to get the ID for a selected item. On Friday, 15 June, 2018 10:09 PM, Anthony Anonde wrote: Sorry your question

how to pass the ID of a slected item in a list to ORM

2018-06-15 Thread Gerald Brown
Greetings: I have a form with a listbox that has people's names and their ID from the database. I am trying to get the ID from that list for the selected person so I can use it in ORM statements: I.E. v1 = Visit.objects.filter(person_id = ??) where ?? is the ID from the select list. Has anyon

Re: Problem with get_absolute_url() in admin

2018-06-10 Thread Gerald Brown
In version 2 of Django that function has been removed. For v 1.10 here is a link that might help: https://docs.djangoproject.com/en/1.10/ref/models/instances/#get-absolute-url Here is another link that might be of help: https://stackoverflow.com/questions/13503645/what-is-permalink-and-get-abs

Re: python manage.py (anything) NOT WORKING ANYMORE

2018-06-04 Thread Gerald Brown
On Monday, June 4, 2018 at 6:58:39 PM UTC+8, Gerald Brown wrote: > > I have been using ./manage.py shell for awhile and now all of a sudden it > has stopped working with the error "AttributeError: 'property' object has > no attribute '__dict__'".

python manage.py (anything) NOT WORKING ANYMORE

2018-06-04 Thread Gerald Brown
I have been using ./manage.py shell for awhile and now all of a sudden it has stopped working with the error "AttributeError: 'property' object has no attribute '__dict__'". I get the same error with anything I enter after the ./manage.py (i.e. runserver, dbshell, etc) I think it might have to

Re: ImportError : cannot import name include

2018-05-18 Thread Gerald Brown
Another option to get the current version of Django is to create a file called requirements.txt.  In this file enter django on a line, and other requirements on other lines.  You can also specify a specific version with django==1.11 or any other version by changing the number after the ==. If t

Re: Problem with debug = True/False

2018-05-18 Thread Gerald Brown
, 2018 at 9:09:03 AM UTC+8, Gerald Brown wrote: > > On my admin site if I have Debug set to true (I have read that for > production this is a no-no) everything looks fine. When I change it to > FALSE all of the styling goes away as if it is being run using gunicorn. > > Has an

Re: Standard approach

2018-05-15 Thread Gerald Brown
>From what little I have read, it looks like https://groups.google.com/forum/#!topic/pinax-users/OvB4sB87Nr4 is trying to do what you are suggesting here. On Wednesday, May 16, 2018 at 7:53:58 AM UTC+8, Mike Dewhirst wrote: > > This list gets a lot of new people joining. They come from all cultu

Re: Message from a django beginner user

2018-05-15 Thread Gerald Brown
The best way to learn it is o jump in and start using it.  Django has a good tutorial on-line @ https://docs.djangoproject.com/en/2.0/intro/tutorial01/.  When you have problems Google and this Group are your friends. Goo luck. On 05/16/2018 01:39 AM, Francis F. Massaquoi, Jr. wrote: Hi, I'm

SQL select statements to Django ORM

2018-05-12 Thread Gerald Brown
As I have said previously, I am new to Django ORM so I would like to know howto/find reference to Django ORM Query to the following SQL Select statements: 1. From Mariadb. SELECT name, date_of_birth, *TIMESTAMPDIFF(YEAR,date_of_birth,'2014-08-02'/or curdate())* AS age FROM some table. 2. Gen

Re: Django Queries

2018-05-11 Thread Gerald Brown
That's strange what does your people model look like? Notice it will only populate the fields you have defined in the model not the columns of the table in the database. Did you run migrations after adding new fields to the model? $ python manage.py migrate Kind

Re: Django Queries

2018-05-11 Thread Gerald Brown
populate the fields you have defined in the model not the columns of the table in the database. Did you run migrations after adding new fields to the model? $ python manage.py migrate Kind regards On Sat, May 12, 2018 at 5:15 AM, Gerald Brown <mailto:gsbrow...@gmail.com>> wrote: Greet

Django Queries

2018-05-11 Thread Gerald Brown
Greetings: I have just started to use Django Queries and I am having some problems. When i use the query: "p = People.objects.all()" & then "p" it shows just the lastname & firstname fields even though there are many more fields in the table. I thought ALL means ALL, ALL fields & ALL records

Re: Problem with debug = True/False

2018-05-11 Thread Gerald Brown
#x27;t recommend it) - it to manually add the static files serving to your urls.py file. See: https://docs.djangoproject.com/en/2.0/howto/static-files/#serving-static-files-during-development This should be fine for a developer environment - but nothing else. Regards, Andréas 2018-05-11 3:09 GMT+

Re: Problem with debug = True/False

2018-05-11 Thread Gerald Brown
the static files serving to your urls.py file. See: https://docs.djangoproject.com/en/2.0/howto/static-files/#serving-static-files-during-development This should be fine for a developer environment - but nothing else. Regards, Andréas 2018-05-11 3:09 GMT+02:00 Gerald Brown <mailto:gsbrow...@gm

Problem with debug = True/False

2018-05-10 Thread Gerald Brown
On my admin site if I have Debug set to true (I have read that for production this is a no-no) everything looks fine. When I change it to FALSE all of the styling goes away as if it is being run using gunicorn. Has anyone observed this? If so have you found a correction? Thanks. -- You rece

Re: Getting error in migrate

2018-05-09 Thread Gerald Brown
Some times you will need to run ./manage.py makemigrations and then ./manage.py migrate . By including the it will only makemigration and migrate for a single application instead of for all of the applications. I have found that this helps as I too was having problems with makemigration an

Re: django makemigrations not working

2018-05-05 Thread Gerald Brown
Saturday, 05 May, 2018 08:49 PM, Zhenning Lang wrote: Maybe the contents of table “django_migrations" in you database should also be removed. I am not quite sure about it 在 2018年5月5日,下午6:34,Gerald Brown <mailto:gsbrow...@gmail.com>> 写道: I have dropped my database, deleted

Re: django makemigrations not working

2018-05-05 Thread Gerald Brown
Yes. I dropped it and then recreated it. Then ran "makemigrations" & "migrate". Migrate is now giving me a lot of errors. Funny that all of the errors that show up are in lines that contain "**/site-packages/django/**", NOT in any lines of MY code. On Saturday, 05 May, 2018 09:17 PM, Hervé

django makemigrations not working

2018-05-05 Thread Gerald Brown
I have dropped my database, deleted all migrations directories and when I run ./manage.py makemigrations I get the message "No changes detected". I am using Django 2.04 with Python 3.5. Any ideas why this is happening? Thanks. -- You received this message because you are subscribed to the Goo

Re: OperationalError

2018-05-03 Thread Gerald Brown
: pupeteer - http://django-puppeteer-pdf.readthedocs.io/en/latest/ - which works by having a CBV type framework - so you subclass a PDF template view - and that will autogenerate a PDF for you - you just need to have unique urls for the PDFs. On 03/05/18 13:22, Gerald Brown wrote: FINALLY. SUCCE

Re: OperationalError

2018-05-03 Thread Gerald Brown
to create PDF documents in Django??? Thanks to all for the suggestions and ideas!!! On Thursday, May 3, 2018 at 6:13:35 PM UTC+8, Gerald Brown wrote: > > I finally discovered what I think is the cause of my problem. *DJANGO > MIGRATIONS ARE NOT WORKING. *On the system that has the p

Re: OperationalError

2018-05-03 Thread Gerald Brown
were made. /Who knows what evil lurks in the heart of the computer? *The Shadow knows!!!* / On Wednesday, 02 May, 2018 07:56 AM, Gerald Brown wrote: I have a Django application that I am having problems with.  In the Admin page I have 3 sections, ABC, DEF & XYZ. Each has 1 option to &q

Re: Need help: django-admin.py startproject [projectname] creates directory which I cannot access

2018-05-03 Thread Gerald Brown
Is Django installed on your C: or D: drive?  If it is on C: then "mysite" should also be on C: On Thursday, 03 May, 2018 03:25 PM, Daisy wrote: I tried what you suggested and got this: D:\projectdir>python create_dir.py Traceback (most recent call last):   File "create_dir.py", line 1, in    

Re: OperationalError

2018-05-02 Thread Gerald Brown
sers@googlegroups.com [mailto:django-users@googlegroups.com] *On Behalf Of *Gerald Brown *Sent:* Wednesday, May 2, 2018 4:08 AM *To:* Anthony Flury; django-users@googlegroups.com *Subject:* Re: OperationalError Thanks for the reply. I have done the makemigrations/migrate numerous times.  Each time

Re: need help

2018-05-02 Thread Gerald Brown
Have you tried "pip install django" without the "== 2.0.5". I think that if you do not specify a version pip will install the latest version. On Thursday, 03 May, 2018 12:46 AM, umarkamb...@gmail.com wrote: please  this is the massage i keep on getting when trying to install django.. what do i

Re: DJANGO Migrations from older version : South db

2018-05-02 Thread Gerald Brown
If you have the original models.py files just run "python manage.py makemigrations" and then "python manage.py migrate". On Wednesday, 02 May, 2018 05:11 PM, Ank wrote: Dear All, I would like to do some migrations that are compatible with older django version using southdb to the newer versi

Re: OperationalError

2018-05-02 Thread Gerald Brown
Thanks for the reply. I have done the makemigrations/migrate numerous times.  Each time it says there is an error in the previous migration file so I have to comment out most of the file.  I then just deleted all of the self generated migration files and started fresh. I was also getting som

OperationalError

2018-05-01 Thread Gerald Brown
I have a Django application that I am having problems with. In the Admin page I have 3 sections, ABC, DEF & XYZ. Each has 1 option to "Add/Change". In 2 of them when I click on the option it works fine. The third gives me the following error " *1054, "Unknown column 'xyz_xyz.first_name' in

Re: AttributeError at /admin/login/

2018-05-01 Thread Gerald Brown
Finally solved this problem by installing python3-dev & libmysqlclient-dev and then I was able to install mysqlclient. Case closed!!! On Tuesday, 01 May, 2018 07:09 PM, Gerald Brown wrote: As a follow-up with further information.  This error occurs when on the Admin login screen I enter

Re: Re: AttributeError at /admin/login/

2018-05-01 Thread Gerald Brown
version.py in _DATETIME_to_python, line 506". Is there another db connector I can use to connect to the Mariadb database? On Tuesday, May 1, 2018 at 7:45:47 AM UTC+8, Gerald Brown wrote: > > I had replied to Daniel Roseman instead of to the users group as I am new > to this group. > >

Fwd: Re: AttributeError at /admin/login/

2018-04-30 Thread Gerald Brown
I had replied to Daniel Roseman instead of to the users group as I am new to this group. Thanks to Daniel for his response Forwarded Message Subject:Re: AttributeError at /admin/login/ Date: Mon, 30 Apr 2018 21:46:35 +0800 From: Gerald Brown To: Daniel

AttributeError at /admin/login/

2018-04-30 Thread Gerald Brown
I am getting the following error when I TRY to log in to my site "AttributeError at /admin/login/ 'datetime.datetime' object has no attribute 'split'" This looks like a Django bug as it is in the Admin module and is NOT related to any of my code. Does anyone have any idea why this is happening

3 Django errors

2018-04-29 Thread Gerald Brown
I have 3 laptops set up supposedly running the same code but each one gives me a different error message. See attached file for an explanation of the problems. Each of the 3 systems are supposedly running the same code. Thanks for any thoughts, ideas, or *SOLUTIONS* for the listed problems.

Re: django autocomplete light

2018-03-31 Thread Gerald Brown
Have a look at this article: https://simpleisbetterthancomplex.com/tutorial/2018/01/29/how-to-implement-dependent-or-chained-dropdown-list-with-django.html It might do what you are trying to do. There are also a lot of other posts about Django on this site. On Saturday, September 16, 2017 at

Django 2 autocomplete

2018-03-31 Thread Gerald Brown
Greetings: Has anyone used the new Django2 autocomplete function? If so do you know of any tutorials or samples on how to set it up? Thanks. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving ema

Re: When deleting field in models admin form not updating.

2018-03-31 Thread Gerald Brown
t; > have you tried to run migrations on that particular app in your django > project > > python manage.py makemigrations app_name > > python manage.py migrate app_name > > On Fri, Mar 30, 2018 at 4:27 PM, Gerald Brown > wrote: > >> I am using Django 2.0.3 and Py

Re: When deleting field in models admin form not updating.

2018-03-31 Thread Gerald Brown
On Friday, March 30, 2018 at 9:31:11 PM UTC+8, Gerald Brown wrote: > > I am using Django 2.0.3 and Python 3.6. When I delete a field in the > model file it is NOT being deleted in the admin form. Any ideas on how I > can delete the field on the admin form? > > Thanks. &

When deleting field in models admin form not updating.

2018-03-30 Thread Gerald Brown
I am using Django 2.0.3 and Python 3.6. When I delete a field in the model file it is NOT being deleted in the admin form. Any ideas on how I can delete the field on the admin form? Thanks. -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Connecting django to postgresql database

2017-06-02 Thread Gerald Brown
When you run "python manage.py.migrate" are you in the same directory as the "manage.py" file? Also I always run "python manage.py makemigrations" before running the "migrate" command. Hope this helps. Gerry On Thursday, May 25, 2017 at 7:48:32 PM UTC+8, Njogu wrote: > > I have been trying to

Re: No installed app with label 'province'.

2017-02-11 Thread Gerald Brown
e they had put those variables as part of an "options" statement. I was getting other errors when I did not have the "app_label" line so that is why I added that. On Wednesday, February 8, 2017 at 7:09:12 AM UTC+8, Gerald Brown wrote: > > I have just started an a

Re: No installed app with label 'province'.

2017-02-10 Thread Gerald Brown
On Thursday, February 9, 2017 at 9:16:48 PM UTC+8, Florian Schweikert wrote: > > On 09/02/17 14:01, Gerald Brown wrote: > > Because of this problem I am NOT able to proceed with my project so any > > and all help will be appreciated. > > Maybe somebody could help

Re: No installed app with label 'province'.

2017-02-09 Thread Gerald Brown
On Wednesday, February 8, 2017 at 7:09:12 AM UTC+8, Gerald Brown wrote: > > I have just started an app on Ubuntu 16.04 Server using Python 3.5 and > Django 1.10.5. > > When I do "@admin.register(Province)" in my admin.py file I get the error > that is the subject

Re: No installed app with label 'province'.

2017-02-08 Thread Gerald Brown
of ther error, e.g. this error occurs on > `python manage.py runserver` or when you access a page on django admin? > When I run "runserver" > > Also, it would be much easier to find the issue if you can share the > traceback of error. > > On Tue, Feb 7, 2017 at 6

No installed app with label 'province'.

2017-02-07 Thread Gerald Brown
I have just started an app on Ubuntu 16.04 Server using Python 3.5 and Django 1.10.5. When I do "@admin.register(Province)" in my admin.py file I get the error that is the subject of this post. Of course there is NO app with label of 'province' as that is the label of a 'Model'. Why is Django

Ignore previous post!!!

2017-02-07 Thread Gerald Brown
You can ignore my previous post as I *think* I discovered my problem. I had 2 admin.py files and the second one was giving me the error... -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails

Re: Django documentation tutorial part 1

2017-02-07 Thread Gerald Brown
Have you tried using "127.0.0.1" instead of "localhost"? I had a similar problem when I used "localhost" On Tuesday, February 7, 2017 at 5:12:30 AM UTC+8, Philip wrote: > > Hello, > > I am working through the tutorial included with the django documentation, > and I am confused as to why my url