Sorry about this post

2016-04-29 Thread Gary Roach
I'm sorry that I am tying up everything with this message but am having problems with one of my mailing list accounts and need to trouble shoot. None of my posts are showing up. If anyone sees this just add something simple and return it to me. I really appreciate your help. Gary R -- You rec

Re: Absolute beginner step by step

2016-06-11 Thread Gary Roach
If you don't mind working with Python2.7 and Django 1.7 you might try "Tango With Django" . It is out of date but still is a good place to start. Too bad that the author hasn't updated it. I have had some success with running three projects in parallel. Tango along with the official Django howt

Re: Absolute beginner step by step

2016-06-13 Thread Gary Roach
I stand corrected. There is a new Tango With Django tutorial out. It uses Python 3.5 and Django 1.9. Try /media.readthedocs.org/pdf/tango-with-django/latest/tango-with-django.pdf Gary R On 06/11/2016 02:07 PM, Gary Roach wrote: If you don't mind working with Python2.7 and Django 1.7 you

Re: Absolute beginner step by step

2016-06-16 Thread Gary Roach
There is a new Tango With Django tutorial out. It uses Python 3.5 and Django 1.9. Try /media.readthedocs.org/pdf/tango-with-django/latest/tango-with-django.pdf <http://media.readthedocs.org/pdf/tango-with-django/latest/tango-with-django.pdf> Gary R

Re: Absolute beginner step by step

2016-06-20 Thread Gary Roach
ith Django tutorial out. It uses Python 3.5 and Django 1.9. Try /media.readthedocs.org/pdf/tango-with-django/latest/tango-with-django.pdf <http://media.readthedocs.org/pdf/tango-with-django/latest/tango-with-django.pdf> Gary R

Re: Beginner question regarding virtualenv

2016-06-23 Thread Gary Roach
On 06/23/2016 11:36 AM, Leo wrote: Hi Leo, The only problem with not using virtuaenv in your case is if you are still periodically updating your software. Since you are using the OS versions of python and django you are at the mercy of those upgrades. A switch from Django 1.8 to 1.9 could brea

Inconsistent dedent error

2016-06-23 Thread Gary Roach
Hi all, The following code is part of the djangoproject.com/en/1.9/tutorial part 2 in mysite/polls/models.py class Question(models.Model): question_text = models.CharField(max_length=200) pub_date = models.DateTimeField('date published') def __str__(self): return self.ques

Re: Inconsistent dedent error

2016-06-23 Thread Gary Roach
On 06/23/2016 02:41 PM, Erik Cederstrand wrote: Den 23. jun. 2016 kl. 21.21 skrev Gary Roach : class Choice(models.Model): question = models.ForeignKey(Question, on_delete=models.CASCADE) choice_text = models.CharField(max_length=200) votes = models.IntegerField(default

Re: python manage.py runserver error

2016-06-24 Thread Gary Roach
Hi Saranyoo I noticed that you are using python 2.7 with django 1.9.7. I would check the django docs to see whether the two are compatible. You may want to switch to Python 3.5.. If you are in the manage.py directory when you fired off runserver it should have worked. Gary R. On 06/23/2016

Using the Eclipse mysite>django>custom command(manage.py$(custom_command)) function

2016-06-25 Thread Gary Roach
Hi all: OS Debian Stretch KDE Desktop I am using Eclipse Neon with the PyDev plugin for developing a django application. At present I am running through the djangoproject tutorial.The tutorial has me run: python manage.py createsuperuser I want to run this within Eclipse and not the s

Re: install with package manager or pip

2016-06-25 Thread Gary Roach
On 06/25/2016 12:35 PM, emetib wrote: i'm looking at trying out django, yet i've seen that you can install it with either the package manager or pip. i'm running debian testing to play around with this. small install ssh server only. using a clone of this base install. haven't played with/

Re: Using the Eclipse mysite>django>custom command(manage.py$(custom_command)) function

2016-06-25 Thread Gary Roach
mysite.manage.py and run things from the system monitor command line? Gary R. On 06/25/2016 01:55 PM, Ilya Boka wrote: Click add. Enter your command( Ex: "runserver"). Click OK. Double click to run this. On Sat, Jun 25, 2016 at 10:07 PM, Gary Roach wrote: Hi all: OS Debian S

def__str__(self) not working properly

2016-07-01 Thread Gary Roach
Hi all; I am working on the official django tutorial (https//docs.djangoproject.com/en/1.9/intro/tutorial/02/) on the section that is adding the choices. Specifically: # Create three choices. >>> q.choice_set.create(choice_text='Not much', votes=0) >>> q.choice_set.create(choice_text='The s

Re: def__str__(self) not working properly

2016-07-03 Thread Gary Roach
Yes it is Gary R On 07/03/2016 06:25 AM, Charlie c wrote: The line is indented 4 spaces yes? On Friday, July 1, 2016 at 10:52:12 AM UTC+1, gary719_list1 wrote: Hi all; I am working on the official django tutorial (https//docs.djangoproject.com/en/1.9/intro/tutorial/02/

resetting table id

2016-07-03 Thread Gary Roach
Hi all I'm still working on the official django tutorial (https//docs.djangoproject.com/en/1.9/intro/tutorial/02/) on the section that is adding the Question table. I'm using Eclipse Neon with PyDev IDE Django 1.9 Pyathon 3.5 SqLite DBMS OS Debian Stretch Linux KDE Desktop While working wit

Re: resetting table id (SOLVED)

2016-07-03 Thread Gary Roach
On 07/03/2016 04:54 PM, James Schneider wrote: On Jul 3, 2016 4:18 PM, "Gary Roach" <mailto:gary719_li...@verizon.net>> wrote: > > Hi all > > > I'm still working on the official django tutorial (https//docs.djangoproject.com/en/1.9/intro/tutorial/02/

ValueError: invalid literal for int() with base 10: 'on'

2016-07-08 Thread Gary Roach
Hi all, I'm working on the official django 1.9 tutorial part 4 , Python 3.5 and Django 1.9 are encapsulated in a virtualenv file in my /opt/ directory. OS Debian Linux with KDE desktop IDE Eclipse with PyDev plugin. Every time I try to vote the program errors out with the following: File

Re: ValueError: invalid literal for int() with base 10: 'on'

2016-07-08 Thread Gary Roach
On 07/08/2016 04:58 PM, James Schneider wrote: > The polls,detail.html is: > > {{ question.question_text }} > > {% if error_message %}{{ error_message }} > {% endif %} > > http://question.id> %}" method="post"> > {% csrf_token %} > > {% for choice in question.choice_set.all %} >

Error in testing script

2016-07-10 Thread Gary Roach
Hi all; OS Debian Linux KDE desktop Django 1.9 Python 3.5 Working with tutorial https://docs.djangoproject.com/en/1.9/intro/tutorial05/ Writing polls/tests.py script I am consistently getting an error: NameError: name 'create_question' is not defined. The first section of tests.py to t

Re: Error in testing script

2016-07-10 Thread Gary Roach
On 07/10/2016 01:57 PM, Gary Roach wrote: Hi all; OS Debian Linux KDE desktop Django 1.9 Python 3.5 Working with tutorial https://docs.djangoproject.com/en/1.9/intro/tutorial05/ Writing polls/tests.py script I am consistently getting an error: NameError: name 'create_question&#x

Re: Error in testing script

2016-07-11 Thread Gary Roach
On 07/10/2016 11:19 PM, Michal Petrucha wrote: On Sun, Jul 10, 2016 at 02:25:40PM -0700, Gary Roach wrote: On 07/10/2016 01:57 PM, Gary Roach wrote: Hi all; OS Debian Linux KDE desktop Django 1.9 Python 3.5 Working with tutorial https://docs.djangoproject.com/en/1.9/intro/tutorial05/ Writing

Document storage and data mining

2016-07-14 Thread Gary Roach
Hi all; I have finished most of the official Django tutorial, have started fooling around with my actual project and have realized that I'm not sure how to start. My projects initial objectives are as follows: Photos of the pages of a document are aggregated into a single pdf file for those

cookiecutter-django installation

2016-08-01 Thread Gary Roach
I am having trouble with a cookiecutter-django installation. I don't have a normal virtualenv setup because I use Eclipse IDE with PyDev plugin. This means that all of the project files are outside of the virtualenv wrapper and vrtualenv is never actually activated. My OS is Debian Linux with K

Re: cookiecutter-django installation

2016-08-02 Thread Gary Roach
It is not clear what errors you have gotten. Can you please describe them? I am not using Eclipse any more so can not reproduce you problem by my own. But all should be run without problem On Mon, Aug 1, 2016 at 11:14 PM, Gary Roach <mailto:gary719_li...@verizon.net>> wrote:

Re: Web based IDE for django

2016-08-15 Thread Gary Roach
While I haven't used it Two Scoops recommends cookiecutter. My reading leads me to believe that it may be what you are looking for. Gary R. On 08/15/2016 02:44 PM, billyhu...@gmail.com wrote: Thanks for your advice. I have to say thats not what the question was. What you are saying is a hostin

Serving very large pdf files with django

2016-09-03 Thread Gary Roach
Hi all, I am working on a project where I need to serve up large (100 -150 MB) static pdf files for viewing. The pdf files are jpg photos of pages from old log books. Downloading into the user's system is out of the question for obvious reasons. In addition the user may only need to see one or

Re: Serving very large pdf files with django

2016-09-05 Thread Gary Roach
Thanks you all for you contributions I have decided to break down the pdf files into individual jpg pages and serve them that way. I plan on putting each document in its own folder and then have the individual pages listed within the folder. I haven't worked out the exact retrieval scheme yet

Re: [Help] Advanced tutorial: How to install my Python package with Virtualenv

2016-09-27 Thread Gary Roach
Hi It took me a while to figure this out but once you see it it is really fairly simple. It somewhat depends on what you are using for and IDE (Integrated Development Environment). I use Eclipse with PyDev plugin and like it. Determine where you want to put your VE (Virtual Envirnment) . Wi

Django can't find database

2016-10-22 Thread Gary Roach
Hi all, Debian System, stretch, 64 bit. KDE4 Desktop Django 1.10 Postgresql 9.6 with psycopg2 When I try to migrate, I get the following error: Traceback (most recent call last): File "/home/gary/workspace/djenv/lib/python3.5/site-packages/django/db/backends/base/base.py", line 199, in

Re: Django can't find database

2016-10-22 Thread Gary Roach
> On Oct 22, 2016, at 11:35 AM, Gary Roach mailto:gary719_li...@verizon.net>> wrote: > When I try to migrate, I get the following error: > >> psycopg2.OperationalError: FATAL: database "archivedb" does not exist > What's happeni

Setting up jQuery in debian with virtualenv

2016-11-09 Thread Gary Roach
Hi all, I am just starting to use jQuery and Ajax in my project and am having trouble setting things up. I am using Eclipse + pyDev as an IDE. This setup stores everything in a workspace directory in my home directory. Instead of putting the whole project inside a virtualenv wrapper, things

Re: Setting up jQuery in debian with virtualenv

2016-11-09 Thread Gary Roach
://docs.djangoproject.com/en/1.10/howto/static-files/ 2016-11-09 21:26 GMT+01:00 Gary Roach : Hi all, I am just starting to use jQuery and Ajax in my project and am having trouble setting things up. I am using Eclipse + pyDev as an IDE. This setup stores everything in a workspace directory in my home directory. Instead

Re: Setting up jQuery in debian with virtualenv

2016-11-10 Thread Gary Roach
n control the virtualenv. If virtualenv is not clear to you, I'd propose to take a look at http://djangodeployment.com/2016/11/01/virtualenv-demystified/ and then re-ask your question. Regards, Antonis Christofides http://djangodeployment.com On 2016-11-09 23:54, Gary Roach wrote: Ludov

Re: Setting up jQuery in debian with virtualenv (SOLVED)

2016-11-12 Thread Gary Roach
look at >> http://djangodeployment.com/2016/11/01/virtualenv-demystified/ and then re-ask >> your question. >> >> Regards, >> >> Antonis Christofides >> http://djangodeployment.com >> >> On 2016-11-09 23:54, Gary Roach wrote: >>> >

Loading the content of an iframe

2016-11-19 Thread Gary Roach
Hi all, I am really stumbling around with my project at present. I am relatively new to both Python and Django and have started a major project with both (retired and have plenty of time). I have set up a main.html page that has logos and such at the top of the page and has some more logo st

settings.py TEMPLATES DIRS

2015-07-31 Thread Gary Roach
Hi I'm using Django 1.8 and python 2-7 on a Debian Linux system. I am using Ninja-ide as my ide. When I enter the following in the TEMPLATES section the settings.py file I get an invalid syntax error: 'DIRS': [os.path.join(BASE_DIR, 'templates'], Since the DIRS entry is directly out of a tuto

Re: Re. My Django Book.

2015-07-31 Thread Gary Roach
Since I am grinding my way through the learning process right now I thing I have some fairly pithy comments to contribute. It seems that no two tutorials do things the same way. I got bogged down in Two Scoops because I needed a more detailed cookbook approach. Tango With Django is the best ex

Re: settings.py TEMPLATES DIRS

2015-08-01 Thread Gary Roach
Thank you very much. I looked at that code for hours and didn't see the missing ) . A different set of eyes are really helpful. Gary R On Friday, July 31, 2015 at 11:59:38 PM UTC-7, Gary Roach wrote: > > Hi > > I'm using Django 1.8 and python 2-7 on a Debian Linux syste

Re: Moving from Django 1.6 to 1.8 (relation "django_site" does not exist

2015-08-10 Thread Gary Roach
On 08/10/2015 09:53 AM, TheBeardedTemplar wrote: Hello, I'm trying to move a fairly large site from Django 1.6.5 to Django 1.8.3. I'm also moving from sqlite3 to postgreSQL at the same time and I'm having trouble with the migrations. Here's what I've done so far: * Installed Django 1.8.3,

can't find static file

2015-09-30 Thread Gary Roach
Hi all; Stats: Debian Linux 8 (jessie) python = 2.7.9 Django 1.7 (To match tutorial) sqlite data base Using virtualenv I'm working my way through the Tango With Rango tutorial and have hit a snag. I added the static/images directory and put in a jpg photo for data. The system can't find the fi

Adding gif file to existing project

2015-10-25 Thread Gary Roach
Django 1.8 Python 3.4 Debian 8 (jessie) with kde desktop Postresql 9.4 Apache2 venv environment setup Ninja-IDE The problem is that I am having trouble getting the image.gif file in the project to show up in the IDE directory. The project tree is as follows: . ├── archive │ ├── archive │ │

Where does the static files reside

2015-11-07 Thread Gary Roach
Which is the correct file structure for static files Putting the static files under the individual project as shown with "home' below: ├── archive │ ├── archive │ │ ├── __init__.py │ │ ├── __init__.pyc │ │ ├── settings.py │ │ ├── settings.pyc │ │ ├── urls.py │ │ └── ws

Re: Where does the static files reside

2015-11-08 Thread Gary Roach
On 11/07/2015 04:29 PM, René Fleschenberg wrote: Hi Gary, In your second example: ├── archive │ ├── archive │ │ ├── __init__.py │ │ ├── settings.py │ │ ├── urls.py │ │ └── wsgi.py │ ├── home │ ├── static | | |___home │ │ ├── home.css │ │ ├── image

finding information on modules, imports, etc.

2015-11-08 Thread Gary Roach
I can't seem to find a "dictionary" of modules? or what ever on the use of: import os or other possible imports from django.contrib import admin possibilities.> Maybe I'm using the wrong terminology but after a gazillion searches, I still haven't found a decent reference. Any help to this

Re: finding information on modules, imports, etc.

2015-11-09 Thread Gary Roach
ience.) Thanks for your reply Gary R. On 11/08/2015 11:19 AM, Gergely Polonkai wrote: It's a bit unclear what you want to do. Could you write a use case? I'm afraid of an XY problem here… On 8 Nov 2015 18:25, "Gary Roach" <mailto:gary719_li...@verizon.net>> w

Apache2, mod_wsgi and django setup

2015-11-12 Thread Gary Roach
Setup for Django development system OS Debian Linux 8 (jessie) using systemd, not init.d Python 3.4.2 Django 1.8.5 Apache2 2.4.10 Debian (mmm-worker) mod_wsgi 4.3.0 Postgresql 9.4.5 Two virtual environments: archive (actual project) and mysite (django tutorial). Setup done with python3 -m venv

Re: Apache2, mod_wsgi and django setup

2015-11-12 Thread Gary Roach
le. I suspect it's using the internal development server. Nice to know. James; See below On 11/12/2015 03:24 PM, James Schneider wrote: On Thu, Nov 12, 2015 at 2:34 PM, Gary Roach <mailto:gary719_li...@verizon.net>> wrote: Setup for Django development system OS Deb

Template can't find image file

2015-12-07 Thread Gary Roach
While I'm working with "Tango with Django" I am using Django 1.8 and Python 3.4 (debian linux). My project tree (somewhat truncated) is in the /root directory and looks as follows: tango ├── bin ├── include ├── lib └── tango ├── db.sqlite3 ├── __init__.py ├── manage.py ├── ran

Re: Template can't find image file

2015-12-08 Thread Gary Roach
m/en/1.9/howto/static-files/#serving-static-files-during-development []'s Lucas Magnum. 2015-12-07 21:45 GMT-02:00 Gary Roach <mailto:gary719_li...@verizon.net>>: While I'm working with "Tango with Django" I am using Django 1.8 and Python 3.4 (de

git exclude files

2015-12-11 Thread Gary Roach
Since Python3, venv seems to be preferable to virtualenv. Most of the howto's are for virtualenv. The file setup between the two is completely different. So do I include the bin/, include/, lib/, and the lib64 -> /root/archive/lib files in the git repository or should they be excluded. If the n

Re: git exclude files

2015-12-12 Thread Gary Roach
use a tool like virtualenvwrapper [1] you can store all your virtualenvs in a single directory on your system to make managing them easy. [1] https://virtualenvwrapper.readthedocs.org/ On Friday, December 11, 2015 at 4:08:29 PM UTC-5, Gary Roach wrote: Since Python3, venv seems to be preferable to virt

Re: git exclude files

2015-12-13 Thread Gary Roach
option. Gary R. On 12/13/2015 01:56 AM, graeme wrote: On Saturday, December 12, 2015 at 2:38:29 AM UTC+5:30, Gary Roach wrote: /root/archive/lib files in the git repository or should they be excluded. If the need to be excluded, how. Definitely exclude it. There are lots of things

Re: git exclude files

2015-12-13 Thread Gary Roach
ioned files and be done with it. It may not be pretty but I think I will avoid a lot of headaches by not messing with my present environmental structure. Gary R. On 12/13/2015 09:50 AM, Scot Hacker wrote: On Sunday, December 13, 2015 at 8:17:15 AM UTC-8, Gary Roach wrote: As I mentione

calling html file from within javascript

2015-12-13 Thread Gary Roach
I use javascript in my main.html (top template) to control the access to several buttons. The buttons call a javascript function. This setup works exactly as I wish except the buttons still don't really do anything. I need to have each button load a different template. The pertinent script is:

Re: calling html file from within javascript

2015-12-14 Thread Gary Roach
document <https://developer.mozilla.org/en-US/docs/Web/API/document.open#Notes>. [1] https://developer.mozilla.org/en-US/docs/Web/API/Document/write On Dec 14, 2015 1:22 AM, "Gary Roach" mailto:gary719_li...@verizon.net>> wrote: I use javascript in my ma

Accessing view from javascript

2015-12-17 Thread Gary Roach
Hi all I am new to this and am really struggling with what should be a simple problem. I have a main.html that has javascript code. There is a switch statement. From the first case statement, I wish to load a template that is the child of main.html. I have a /home/view.py with: def welcome(r

Migrate django project to eclipse/pydev ide

2015-12-22 Thread Gary Roach
Hi all; I have been working on a project for some time using Ninja-IDE. Unfortunately the development on Ninja has - for all practical purposes - stopped. It no longer works for me. I need to switch to Eclipse with the Pydev plugin and am having trouble finding out how to do this. I have look

Re: Migrate django project to eclipse/pydev ide

2015-12-23 Thread Gary Roach
gure-atom-editor-for-python>? 2) What error Eclipse is showing or what functionality is not working? On Tue, Dec 22, 2015 at 5:32 PM, Gary Roach <mailto:gary719_li...@verizon.net>> wrote: Hi all; I have been working on a project for some time using Ninja-IDE. Unfortunate

Re: Migrate django project to eclipse/pydev ide

2015-12-30 Thread Gary Roach
On 12/22/2015 04:53 PM, Clifford Ilkay wrote: On 22/12/15 07:05 PM, Andrew Farrell wrote: Could you also tell us: 1) Why you need to switch to Eclipse specifically rather than PyCharm , SublimeText , or (the one I use) Atom

Re: Is it a bad idea to start a project using Django 1.7 at this moment?

2016-01-03 Thread Gary Roach
Do I detect someone using Tango With Rango as a tutorial. I agree that, for me, it made more sense than the other tutorials. I tried most of them. To bad that he hasn't updated to 1.8 and python 3 . I solved the problem by setting up a virtual environment using python 2.7 and django 1.7.11 for

ImportError: No module named security

2016-01-04 Thread Gary Roach
I've been trying different things with django and different tutorials. I was using Ninja as my IDE but had to give it up because of lack of support. I just switched to Eclipse with the PyDev plugin. (No I cant get Pycharm). The IDE is complicated but seems to do everything I wish it to do if I

Re: ImportError: No module named security(SOLVED)

2016-01-04 Thread Gary Roach
file would include the new middleware and cause this error on 1.7. On Tuesday, January 5, 2016 at 2:56:51 AM UTC+1, Gary Roach wrote: I've been trying different things with django and different tutorials. I was using Ninja as my IDE but had to give it up because of lack of

Trouble getting posted

2016-04-09 Thread Gary Roach
I have tried to post a couple of things in the last few days with no results. My posts are never returned to me. So this is another test. Gary R -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

Re: Trouble getting posted

2016-04-09 Thread Gary Roach
On 04/09/2016 02:37 PM, jorrit...@gmail.com wrote: Did you subscribe to the topics you posted? Have been for months. This is a new problem but seems to not be a problem with this site. The trouble seems to be unique to the Debian User site. Thanks for your reply. Gary R. -- You received thi

Re: Trouble getting posted

2016-04-10 Thread Gary Roach
Actually James, I don't think that is true. I run a group for a project and have no trouble getting returns on my posts. This is a feature that can be turned on/off a I recall. I have no trouble getting my posts returned with this site but only with my debian-user site. I think the trouble is w

Re: Trouble getting posted

2016-04-11 Thread Gary Roach
James My original post was a test to see whether I had a global problem which I didn't. The rest is just a discussion that ensued. ie Off topic by accident. One last comment. I use a Debian Linux system with Mozilla's firebird email client. No insults intended but I stay as far away from Mi

Re: Disappearing desktop icons

2016-04-22 Thread Gary Roach
Sure did. Debian-list is just above Django list on my main client filter. Sorry Gary R. On 04/21/2016 08:24 PM, Mario Gudelj wrote: I think you're posting this to a wrong list Gary. This od django list. On Friday, 22 April 2016, Gary Roach <mailto:gary719_li...@verizon.net