Don't pass a "set" object in the choices argument for a model field

2023-03-07 Thread Tj Johnson
I just ran into this, a field will accept a "set" object for the choices argument, however since set objects are unordered, it's possible that a new migration will be created every single time makemigrations is run. debugging this was a matter of noticing that the developer used curly braces in

Re: weird memory error on Centos7

2021-02-16 Thread Michael Johnson
Hi Wouter, I am having this same issue (or a very similar one - I am using Centos 8), and this is the only place I have seen someone else with it. Do you mind sharing your solution? I have the packages installed as suggested by DANIEL URBANO DE LA RUA, and I see on the docs that geodjango supor

Re: Newbie looking for some help with Postgres <> Django connection

2020-11-09 Thread Marc Johnson
Hi David, Thanks again for the input. I havent quite figured it out yet but I appreciate the help! Best, Marc On Thu, Nov 5, 2020 at 8:02 AM David Nugent wrote: > > > On 5 Nov 2020, at 04:11, Marc Johnson wrote: > > Hi David, > > Thanks again for the feedback. When

Re: Newbie looking for some help with Postgres <> Django connection

2020-11-03 Thread Marc Johnson
Hi David, Thanks for the feedback! I'm checking out dj_database_url and have a few follow up questions I was hoping you (or someone) could help me with. 1. Since this app is dockerized, I have my existing env vars in my docker-compose-prod.yml file. Is that where I should list DATABASE_URL? Like

Newbie looking for some help with Postgres <> Django connection

2020-10-31 Thread Marc Johnson
Hi All, I'm looking for tips/resources for a problem I'm facing with my Django app: https://ndcportal.herokuapp.com/ I'm attempting to connect my Dockerized Django app with a PostgreSQL db. The postgres db is already populated, and I can access the data via pgadmin, but I cannot figure out th

Re: DjangoProject

2020-08-11 Thread Adam Johnson
Hi! I think you've found the wrong mailing list for this post. This mailing list is for discussing the development of Django itself, not for support using Django. This means the discussions of bugs and features in Django itself, rather than in your code using it. People on this list are unlikely t

Re: Capture URL values in a CBV

2020-04-17 Thread Tim Johnson
Wham! That is what I was looking for. From a class-based-view virgin to a wise head: **you have been so helpful** thank you On 4/17/20 1:08 PM, Dylan Reinhold wrote: def get_context_data(self, **kwargs):         # Call the base implementation first to get a context         context = super().g

Re: Capture URL values in a CBV

2020-04-17 Thread Tim Johnson
sure the solution is very easy, but I obviously am missing something. thanks On 4/16/20 7:26 AM, Tim Johnson wrote: On 4/15/20 7:24 PM, Gavin Wiener wrote: Hey Tim Hello Gavin: Thank you for your prompt reply. The bigger question is, what are you trying to achieve? I gotta know. I

Re: Capture URL values in a CBV

2020-04-16 Thread Tim Johnson
On 4/15/20 7:24 PM, Gavin Wiener wrote: Hey Tim Hello Gavin: Thank you for your prompt reply. The bigger question is, what are you trying to achieve? I gotta know. I'm a retired programmer with 19 years doing CGI. Wrote and implemented my own framework. First in C, than C++ then rebol, the

Re: AddTocard And cart Not Working Plese Help Me

2020-04-16 Thread Mohamed Johnson
Hello, Please take a look at the value stored on tour localStorage On Thu, Apr 16, 2020 at 08:06 kkwaqar786 wrote: > Error JavaScript Please Solve My Problems > > [image: er.JPG] > > [image: erc.JPG] > > > Admin: > username:waqar > password:1234 > > -- > You received this message because you are

Capture URL values in a CBV

2020-04-15 Thread Tim Johnson
using django.VERSION (2, 1, 5, 'final', 0) with python 3.7.2 on ubuntu 16.04 Given the URL pattern below: path('', ArticleDetailView.as_view(), name='article_detail'), And the view as below: class ArticleDetailView(DetailView):     model = Article     template_name = 'article_detail.html'    

Re: Name clashes on custom commands

2020-04-10 Thread Tim Johnson
- we use it in one of our projects to override the "runserver" command. The order of the applications in your project dictates which command is run. Regards, Andréas Den fre 10 apr. 2020 kl 00:18 skrev Tim Johnson <mailto:t...@akwebsoft.com>>: I have more of an

Name clashes on custom commands

2020-04-09 Thread Tim Johnson
I have more of an observation than a question and it is likely that any responses may serendipitously enlighten me. From the contributions of good djangoists to an earlier query on my part (subject ORM from the command line) I have been enlightened about custom commands and django-extensions a

Re: ORM from the command line

2020-04-09 Thread Tim Johnson
odesílatel Tim Johnson <mailto:t...@akwebsoft.com>> napsal: Thank you Andréas. I have come across that too, after my OT. This is definitely what I was looking for. cheers On 4/9/20 2:05 AM, Andréas Kühne wrote: Hi Tim, What you probably should do is use

Re: ORM from the command line

2020-04-09 Thread Tim Johnson
goodness - and it can be run from the command line. See here: https://docs.djangoproject.com/en/3.0/howto/custom-management-commands/ This is how I would handle it. Regards, Andréas Den tors 9 apr. 2020 kl 00:18 skrev Tim Johnson <mailto:t...@akwebsoft.com>>: using django.VERS

ORM from the command line

2020-04-08 Thread Tim Johnson
using django.VERSION (2, 1, 5, 'final', 0) with python 3.7.2 on ubuntu 16.04 I have a need for a "Housekeeping" application. It's usage would be to 1) connect to a database, either mysql, mariadb or postgres 2) truncate two tables and repopulate them based on an arbitrary data structure such

Re: Active Open Source Project to contribute to

2020-03-10 Thread Johnson
Hi Sam, great, i've sent you a message. Cheers! On Wednesday, March 11, 2020 at 12:28:43 AM UTC+1, Johnson wrote: > > Hi friends, I'm a django/vue js junior developer, does anyone has or knows > beginner friendly open source projects I can start contributing to. > > Th

Active Open Source Project to contribute to

2020-03-10 Thread Johnson
Hi friends, I'm a django/vue js junior developer, does anyone has or knows beginner friendly open source projects I can start contributing to. Thanks. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop rece

Where to source a very large data structure.

2020-03-03 Thread Tim Johnson
I am building a site that will render articles and essays. They will be arranged by topic.  An index of topics will be rendered. Once a topic is selected, a list of articles will be rendered as a secondary index. I propose to control this rendering using two data structures that will grow in

Re: Where to set the DATABASE_URL environment variable on Heroku

2019-12-07 Thread Tim Johnson
On 12/6/19 9:09 PM, Jorge Gimeno wrote: On Fri, Dec 6, 2019 at 5:40 PM Tim Johnson <mailto:t...@akwebsoft.com>> wrote: Despite the voluminous Heroku documentation I am unable to establish where to initialize the DATABASE_URL that would establish credentials for my

Where to set the DATABASE_URL environment variable on Heroku

2019-12-06 Thread Tim Johnson
Despite the voluminous Heroku documentation I am unable to establish where to initialize the DATABASE_URL that would establish credentials for my deployed database. Heroku's documentation uses the following example DATABASE_URL=$(heroku config:get HEROKU_POSTGRESQL_TIMS_URL -a timsapp) But I

Re: Choosing MySQL or PostGres on Heroku

2019-11-28 Thread Tim Johnson
ure if this service will be officially available in this coming release. I hope this helps, Happy Holiday to Everyone. Leon On Wed, Nov 27, 2019 at 6:34 PM Tim Johnson <mailto:t...@akwebsoft.com>> wrote: Using python 3.7.2, Django 2.1.5 on Linux development workstation with

Choosing MySQL or PostGres on Heroku

2019-11-27 Thread Tim Johnson
Using python 3.7.2, Django 2.1.5 on Linux development workstation with deployment to Heroku. I retired several ago, primarily coding in python and mostly working in legacy CGI systems with MySQL backends and still use mysql on my workstation. I am now essentially a hobbyist who wishes to use

Re: page not found but url exists

2019-08-27 Thread Frederick Johnson
I think you should remove the / at the begining -- 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 view this discussio

Fine-tuning rich text displays

2019-05-24 Thread Tim Johnson
u can find almost anything on google _if_ you know the right keywords ... could use more of those. thanks -- Tim Johnson http://www.tj49.com -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

Re: formfield_overrides doesn't work

2019-05-12 Thread Tim Johnson
char size. > > Here’s a great usage example on widget tweaks: > https://simpleisbetterthancomplex.com/2015/12/04/package-of-the-week-django-widget-tweaks.html. > > I hope this is useful for you. Thanks Jim. I had seen references to 'tweaks' and I will give it a try. c

Re: formfield_overrides doesn't work

2019-05-12 Thread Tim Johnson
en" the field with css. Thanks again Joe. You've been a great help and I've learned a lot. cheers -- Tim Johnson http://www.tj49.com -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this grou

Re: formfield_overrides doesn't work

2019-05-12 Thread Tim Johnson
ward. Do you suppose that there is a particular plugin that enables formfield_overrides? **OR** is {{ form.as_p }} in the template inhibiting the rendering? My goal was not to change the max_length attribute, but the size attribute in the rendered HTML code. For the record, css widens the input

Re: formfield_overrides doesn't work

2019-05-11 Thread Tim Johnson
* Tim Johnson [190511 11:20]: > django 2.1.5 with python 3.7.2 > > I have a models.py class as follows: > class Article(models.Model): > title = models.CharField(max_length=255,) > > And I want to override the rendered default size attribute to 100 in > t

formfield_overrides doesn't work

2019-05-11 Thread Tim Johnson
s admin.site.register(Article, ArticleAdmin) Sadly it appears to have no effect. Viewing the rendered source, I do not see a size attribute. the field is rendered as: Have I ommited a step? thanks -- Tim Johnson http://www.tj49.com -- You received this message because you are subscribed to the Googl

Re: WYSIWYG/Rich Text Editor recommendations

2019-05-06 Thread Tim Johnson
you using? thanks again -- Tim Johnson http://www.tj49.com -- 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.co

quill tries to import deprecated django.forms.util

2019-05-05 Thread Tim Johnson
e is now forms.utils not forms.util Before I set to hacking venv code and since I know there are quill users on this list, I should ask: Is there a later quill available for download with correct changes? thanks -- Tim Johnson http://www.tj49.com -- You received this message because you a

Re: WYSIWYG/Rich Text Editor recommendations

2019-05-04 Thread Tim Johnson
* Tim Johnson [190430 16:27]: > Using python 3.7.2 and django 2.1.5 > > Production is in Ubuntu 16.04 and prospective deployment is likely > to be CentOS with same python/django. > > I'm a retired python developer. > > I'd welcome recommendations and/or cav

Re: WYSIWYG/Rich Text Editor recommendations

2019-04-30 Thread Tim Johnson
* Joel Mathew [190430 17:29]: > Currently I'm using quill. It's easy to implement, and has all basic > features. Cool. Thanks for that Joel. > > I'd like to recreate the same functionality with django. I will need > > to be able to include embedded images. --

WYSIWYG/Rich Text Editor recommendations

2019-04-30 Thread Tim Johnson
Using python 3.7.2 and django 2.1.5 Production is in Ubuntu 16.04 and prospective deployment is likely to be CentOS with same python/django. I'm a retired python developer. I'd welcome recommendations and/or caveats regarding a stable WYSIWIG "plugin". Much is available on google, but it is al

Re: Recommend Tutorials

2018-11-27 Thread Tim Johnson
; Regards > > Sent from my iPhone > > > On Nov 26, 2018, at 7:33 PM, Tim Johnson wrote: > > > > Using django 2.0 on ubuntu with python 3.5.2 > > > > Some tutorials that I have tried have deprecated code and I get > > errors. > > > > I would

Recommend Tutorials

2018-11-26 Thread Tim Johnson
about as current as they come :). It would be fun to experiment with others however. thanks -- Tim Johnson http://www.tj49.com -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emai

Re: Unapplied Migration - how to apply

2018-11-20 Thread Tim Johnson
* Joel Mathew [181120 11:18]: > Yes, for your special case where you seem to have a pre-existing migration, > you dont need makemigrations before migrate. I was just commenting that > this is not the usual case. Thank you. > On Wed, 21 Nov 2018 at 01:43, Tim Johnson wrote: &

Re: Unapplied Migration - how to apply

2018-11-20 Thread Tim Johnson
at was suggested by Shubham Rewale did fully apply the migration. Which is correct? -- Tim Johnson http://www.tj49.com -- 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, s

Re: Unapplied Migration - how to apply

2018-11-20 Thread Tim Johnson
Nov 2018, 10:10 p.m. Tim Johnson > > using django on ubuntu 16.04 > > python 3.5.2 > > django.VERSION = > > (2, 0, 0, 'final', 0) > > Working from the Django Core book by Nigel George. > > When launching <...> For more options, visit https://

Unapplied Migration - how to apply

2018-11-20 Thread Tim Johnson
issue? (I've so far not found anything to clarify) 3) How do the migrations above correspond to DB tables (I'm using the default sqlite3 configuration)? Thanks -- Tim Johnson http://www.tj49.com -- You received this message because you are subscribed to the Google Groups "Django

Not Found "/lobby/" django-channels routing error

2018-04-03 Thread Mike Johnson Jr
routing.py from channels import include, route from chat import consumers from . import game_consumers channel_routing = [ #game routing route('websocket.connect', game_consumers.ws_connect_lobby, path=r"^/lobby/$"), route('websocket.receive', game_consumers.ws_re

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 tem

GeoDjango GDAL Slice Error in layer.py

2018-01-12 Thread Justin Johnson
I'm completely new to GeoDjango. I'm working through the tutorial for Django version 2.0, and I am encountering an error when I follow the steps in the GeoDjango section. Specifically, when I attempt to slice a Layer object to extract Features, it gives me an error which looks like a poss

Websocket, an existing connection was forcibly closed by the remote host. django-channels

2017-06-25 Thread Mike Johnson Jr
So I'm getting the error as described in the title of this post. I'm following this tutorial: https://gearheart.io/blog/creating-a-chat-with-django-channels/ Here's the full traceback: In [1]: import websocket In [2]: ws = websocket.WebSocket() In [3]: ws.connect("ws://localhost:8000")--

how do I use the url to filter?

2016-02-01 Thread Dean Johnson
Hello all, Hopefully someone can shed some light on this for me.. I have been following a blog tutorial, just to get used to Django, and how everything works with url/views/models etc... but I have become stuck. So I am able to go to the admin panel and create,save "blogs", when I visit http:

Individual form element modification in Django

2015-07-21 Thread Rafer Johnson
Hi Guys, I would like to know how I can apply unique identifiers to individual form elements. Currently I am trying to apply unique classes to individual inputs in a form and finding it impossible based on what I know about Django form helpers. I was trying to apply a unique background to each

Displaying Calculated and Modified field names in a Django Model?

2015-06-26 Thread Heather Johnson
I am creating reports in my MySQL backend. I have created a database view that only displays the fields I need: id, Position, Fault_Count. Postion and Fault_Count are modified field names from the Select statement. Django isn't liking this too much and keeps throwing an Operational Error (1054).

Re: Relocation Apps to subfolder

2013-05-07 Thread Tim Johnson
* Russell Keith-Magee [130507 18:40]: > On Wed, May 8, 2013 at 10:01 AM, Tim Johnson wrote: <..> > Example > > cd my/shiny/new/django/project > > django-admin.py startproject myproj > > mkdir apps > > cd apps > > manage.py startapp myapp1 > >

Relocation Apps to subfolder

2013-05-07 Thread Tim Johnson
FYI1: 'Old' pythonist, but CGI and cli utilities only. django noob. I'm playing with django (~1.3) and using "Django 1.0 Website development" by Hourieh as a a tutorial. FYI2: I have developed and used my own MVC'ish framework for some time now. It would be my preference to locate an app under an

[solved]Re: Reloading modules during development

2013-05-05 Thread Tim Johnson
* Tim Johnson [130505 12:44]: > * Aljoša Mohorović [130505 11:28]: > > django has development server which autoreloads > > check https://docs.djangoproject.com/en/1.5/ref/django-admin/ > Thanks. However this is very problematic. Don't know how to start > it. >

Re: Reloading modules during development

2013-05-05 Thread Tim Johnson
* Aljoša Mohorović [130505 11:28]: > django has development server which autoreloads > check https://docs.djangoproject.com/en/1.5/ref/django-admin/ Thanks. However this is very problematic. Don't know how to start it. Example : Project is at /Users/http/run/test0 From /Users/http/run/te

Reloading modules during development

2013-05-05 Thread Tim Johnson
OS = Mac OSX Lion FYI: I am just starting to investigate django and am just "playing" with it. I've created a view and am experimenting with it by changing code. I start django using the following : gunicorn_django --daemon --pid dj.pid --bind=127.0.0.1:8001 and stop it with kill $(cat dj.pid)

Re: Deploying: Desktop to server

2013-04-09 Thread Tim Johnson
* Brian Schott [130409 07:12]: > Others are welcome to disagree, but try to avoid the trap of using > JSON fixtures to migrate the database. You can get yourself in > trouble pretty quickly with foreign key collisions if you are not > careful. Use pg_dump or mysqldump instead to backup/move dat

Re: Deploying: Desktop to server

2013-04-08 Thread Tim Johnson
* Shawn Milochik [130408 16:41]: > It should be fine, unless you're using encrypted fields, using the > SECRET_KEY setting as the key, and have a different key in production. > > Of course, if you want to keep the databases in sync after that, that's > another issue. Understood. Thanks. -- T

Deploying: Desktop to server

2013-04-08 Thread Tim Johnson
FYI - I'm new to django, but have been doing web programming since '96 and python since '03. I intend to put together a test site on my desktop and push it to a remote server. I will be the only user making changes to this site. Thus I presume that it is OK to push the database as well. Am I cor

Re: Django 1.5 with uwsgi(threaded)/mysql seems to magically cache querysets

2013-04-02 Thread Alan Johnson
It's tough to know what the deal is without any info on your code or database, but two things come to mind. One is some of the new caching in Django 1.5 for related models (https://docs.djangoproject.com/en/dev/releases/1.5/#caching-of-related-model-instances), and the other is database isolat

Re: Doubt regarding JSON/SQL in Django

2013-03-30 Thread Alan Johnson
You almost certainly don't want to use JSON as your storage method. This is a database problem, and the Django ORM really shines at letting you solve it without having to think super hard about database modeling. You wouldn't create a table for each user's task list. You would create a model cal

django-cache-machine with Redis

2013-03-28 Thread Alan Johnson
How does one configure this? The documentation only explains how to use locmem or memcached, and yet the commit logs reference Redis multiple times, so it must be doable. Does anybody have any advice or experience with this? -- You received this message because you are subscribed to the Googl

Automated Django benchmarking with New Relic

2013-03-21 Thread Alan Johnson
I've got a Django web app with a complicated data model that's experiencing performance issues. Using New Relic, I was pretty much instantaneously able to isolate what the problem to a particular query. But there are a number of different solutions I can try. What I'd like to do is be able to b

Conditionally defined model field in abstract model

2013-03-21 Thread Alan Johnson
I've got an abstract model in my project that I want to use to define a field by default on concrete subclasses, but also to allow that field to be redefined as something other than the default dynamically. All of this works right now: class classproperty(object): """ Dec

Re: PostgresSQL or MySql with django?

2013-03-21 Thread Alan Johnson
You don't have to have the databases set up at the same time for the django-extensions dumpscript method (nor for the dumpdata method). I haven't used it myself, but as I understand it, the script will contain the data you need. 1. Create the script with existing MySQL running 2. Reconfi

Re: Django split setting and environment variables

2013-03-21 Thread Alan Johnson
I think hardcoding local machine development passwords is fine, but it's still better to store the production passwords in a key-value file that stays out of source control and is permissioned such that only authorized developers can directly access the server or the credential file. Of course

Re: PostgresSQL or MySql with django?

2013-03-21 Thread Alan Johnson
I want to echo the support for Postgres. I find it to be a bit more arcane than MySQL, but even in an extremely DB intensive app, Django's ORM is so slick that I rarely have to muck around in Postgres land. I think it's * slightly* better supported by Django, if you need to use things like disti

Re: Django with FastCGI doesn't works

2013-03-06 Thread Tim Johnson
* Stephan Hassenpflug [130306 11:45]: > Hi, > > I have the same problem, but I can not see what to change. > I can not change the setup of apache as described. Me too (similarly) I kind of feel like fastcgi and shared hosting environments have been abandoned by django (or never _really_ sup

Conditionally defined model field in abstract model

2013-03-06 Thread Alan Johnson
(cross-posted from StackOverflow, answer there if you prefer, but I thought it might be too low level to get much help there alone) I've got an abstract model in my project that I want to us

Re: FastCGI Recipe for shared hosting

2013-03-03 Thread Tim Johnson
* Marc Aymerich [130303 14:17]: > On Sun, Mar 3, 2013 at 5:33 PM, Tim Johnson wrote: > > Clearly, a red herring, and clearly django could do better with > > documentation and support for shared servers. > > (very frustrated) Drupal makes it so easy! No excuse

Re: FastCGI Recipe for shared hosting

2013-03-03 Thread Tim Johnson
* Marc Aymerich [130303 14:17]: > On Sun, Mar 3, 2013 at 5:33 PM, Tim Johnson wrote: > > https://docs.djangoproject.com/en/dev/howto/deployment/fastcgi/#running-django-on-a-shared-hosting-provider-with-apache :( I've read it a hundred times. Using that 'recipe'

Re: FastCGI Recipe for shared hosting

2013-03-03 Thread Tim Johnson
* Tim Johnson [130302 14:30]: > * Tom Evans [130301 06:44]: > > Apache httpd with mod_fastcgi: > > > > RewriteCond %{REQUEST_URI} !^/media > > RewriteCond %{REQUEST_URI} !^/ > > # repeat for any other directories you want httpd to serve > >

FastCGI Recipe for shared hosting

2013-03-02 Thread Tim Johnson
* Tom Evans [130301 06:44]: > Apache httpd with mod_fastcgi: > > RewriteCond %{REQUEST_URI} !^/media > RewriteCond %{REQUEST_URI} !^/ > # repeat for any other directories you want httpd to serve > RewriteRule ^/(.*)$ /app.fcgi/$1 [QSA,L] > FastCGIExternalServer /path/to/your/htdocs/app.fcgi -sock

Re: Daemonize django server

2013-03-01 Thread Tim Johnson
* Tom Evans [130301 06:44]: > On Thu, Feb 28, 2013 at 6:23 PM, Tim Johnson wrote: > > I'm having a hell of a time getting fastcgi to work on my mac, so <...> > > I didn't reply to your fastcgi posts yesterday, as you were attempting > to have everything spawn

Re: Daemonize django server

2013-02-28 Thread Tim Johnson
* carlos [130228 13:15]: > you try http://gunicorn.org/ is fast and easy to deploy :) It was as simple as easy_install gunicorn then switch to the app directory and ran gunicorn_django --daemon --pid djpid --bind=127.0.0.1:8001 I have a daemonized process at localhost:8001 and to shut it dow

Re: Daemonize django server

2013-02-28 Thread Tim Johnson
* carlos [130228 13:15]: > you try http://gunicorn.org/ is fast and easy to deploy > > Cheers Thank you! That looks great. -- Tim tim at tee jay forty nine dot com or akwebsoft dot com http://www.akwebsoft.com -- You received this message because you are subscribed to the Google Groups "Dj

Re: Daemonize django server

2013-02-28 Thread Tim Johnson
* Josh Cartmell [130228 09:48]: > This (http://software.clapper.org/daemonize/) may do what you want and > can be installed with homebrew on a mac, but if this is in any way a > production setting, I wouldn't do it. The dev server hasn't gone > through any security audits and could and probably d

Daemonize django server

2013-02-28 Thread Tim Johnson
I'm having a hell of a time getting fastcgi to work on my mac, so for the time being I'll just stick with using the django server. Is it possible to daemonize the server? I would prefer that in some cases. >From https://docs.djangoproject.com/en/dev/ref/django-admin/ I see daemonize as an option

Re: Setting django for fastcgi

2013-02-26 Thread Tim Johnson
I have now pared my 'old' .htaccess method for CGI to this: (code) AcceptPathInfo On AddHandler fcgid-script .fcgi RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.fcgi/$1 [L,QSA] (/code) Note that Apache does not find index.fcgi unless AcceptPathInfo On is enabled. But

Re: Setting django for fastcgi

2013-02-26 Thread Tim Johnson
code for test0_loader.py as follows #!/usr/bin/python import os # Set the DJANGO_SETTINGS_MODULE environment variable. os.environ['DJANGO_SETTINGS_MODULE'] = "settings" from django.core.servers.fastcgi import runfastcgi runfastcgi(method="threaded", daemonize="false") -- Tim tim at tee jay fort

Setting django for fastcgi

2013-02-26 Thread Tim Johnson
FYI: OS=Mac OSX 107, Python 2.7.1 Experience : CGI programming 17 years, python 10 years. Django, FastCGI - newbie .htaccess - pretty shaky I'd like to work with django out of the box as fastcgi. I have a test site set up. With (code) python manage.py runserver 8000 (/code) My test sites is acces

Re: setting up django with virtualenv on windows7

2012-06-25 Thread Dan Johnson
On 06/25/2012 03:12 PM, mymlyn wrote: i started a topic on stackoverflow, analysing responses on SO, on similar topics, im not really sure wether ill get any feedback there so im gonna try here :) described my problem here: http://stackoverflow.com/questions/11193905/setting-up-django-with-virtu

Re: Suse Linux installation

2011-10-17 Thread Andrew Johnson
how to usage it here[1]. > Choose the correct folder from the openSUSE version you are using. > > [1]:http://en.opensuse.org/SDB:Zypper_usage > > On Mon, Oct 17, 2011 at 4:37 PM, Andrew Johnson > > wrote: > > Thanks for the response! > > > Where can I get more gui

Re: Suse Linux installation

2011-10-17 Thread Andrew Johnson
ute or python-setuptools to build it > (you can just install one of them with 'zypper in python-...' or > download from the same[1] repo). > > [1]:http://download.opensuse.org/repositories/devel:/languages:/python/ > > On Fri, Oct 14, 2011 at 1:54 PM, Andrew Johnson &g

Suse Linux installation

2011-10-14 Thread Andrew Johnson
I download and untar Django-1.3.1 and try to install and get: django/Django-1.3.1> sudo python setup.py install Traceback (most recent call last): File "setup.py", line 1, in ? from distutils.core import setup ImportError: No module named distutils.core I don't see a file named distutils.co

Re: Verify sqlite connection from the comand line

2011-03-26 Thread Tim Johnson
* Shawn Milochik [110326 11:15]: > Follow the instructions in the beginning of the Django tutorial to set > up sqlite3 > as your database. > > Then: > > manage.py dbshell > > This should bring you to the sqlite3 interactive prompt if it works. > > For extra fun you can create a simple mode

Verify sqlite connection from the comand line

2011-03-26 Thread Tim Johnson
FYI: I am putting together the resources for a tutorial (not development) on a slax OS running off of an SD card in an Asus Netbook. I am using currently available slax modules - sqlite-3.6.14.2, python-2.5.2 and django-1.1. Although some will want to recommend getting more current stuff, that is w

Re: Setting system path for django

2011-03-25 Thread Tim Johnson
* Graham Dumpleton [110325 16:43]: > > > On Saturday, March 26, 2011 8:56:53 AM UTC+11, tim042849 wrote: > > > > I've set up python 2.7 on slax. > > I've also set up django 1.1 on slax. Slax does things a little > > differently, so it appears. django is installed at > > /usr/lib/python2.5/site-p

Re: Setting system path for django

2011-03-25 Thread Tim Johnson
* Mike Ramirez [110325 17:13]: > On Friday, March 25, 2011 05:46:54 pm Tim Johnson wrote: > > > > > > It really sounds like when you install python, you're using `python > > > setup.py` > > > That's my bad. that should read "install django

Re: Setting system path for django

2011-03-25 Thread Tim Johnson
* Mike Ramirez [110325 15:42]: > On Friday, March 25, 2011 02:56:53 pm Tim Johnson wrote: > > I've set up python 2.7 on slax. > > I've also set up django 1.1 on slax. Slax does things a little > > differently, so it appears. django is installed at > > /u

Re: Setting system path for django

2011-03-25 Thread Tim Johnson
* Tim Johnson [110325 14:39]: > * Shawn Milochik [110325 14:30]: > > Use virtualenv and save yourself a lot of trouble. > Setting system paths is not a lot of trouble for me. It is just > that I have not had to use .pth files for years, on my workstation > I address sys.path

Re: Setting system path for django

2011-03-25 Thread Tim Johnson
* Shawn Milochik [110325 14:30]: > Use virtualenv and save yourself a lot of trouble. Setting system paths is not a lot of trouble for me. It is just that I have not had to use .pth files for years, on my workstation I address sys.path directly > http://pypi.python.org/pypi/virtualenv > > Also

Setting system path for django

2011-03-25 Thread Tim Johnson
I've set up python 2.7 on slax. I've also set up django 1.1 on slax. Slax does things a little differently, so it appears. django is installed at /usr/lib/python2.5/site-packages/django python 2.7 does not know where to find django, because the path to django is not being added to sys.path. I've

Re: django tutorial on asus netbook

2011-03-22 Thread Tim Johnson
* Bill Freeman [110322 16:38]: > You don't actually need an webserver for a learning scenario, so > apache, or even lighthttp is unnessary. Django comes with the > "development server" built in. Python itself listens on a port for > HTTP requests. > > Of somewhat more importance is a database.

django tutorial on asus netbook

2011-03-22 Thread Tim Johnson
I'm going on vacation with my little Asus EEE Pc 900 with xandros. lighttpd is running. vim (non-gui 'big' version) and kate installed. Python version is 2.4.4 is installed. Couldn't get apache2 to install at this point. I've got the book "Django 1.0 Web Site Development". I hope to take the boo

htaccess/rewrite engine/default page

2011-03-02 Thread Tim Johnson
I am using Python 2.6.6 on mint 10. I just installed django from synaptic. This is not a django-specific question, but I am hopeful that the answer will be helpful to other noobs. Given that I have the following python script installed on my machine: myFooLoader.py And I point my browser to http:

Re: CMS for django

2010-11-14 Thread Tim Johnson
Thanks for the responses. -- Tim tim at johnsons-web.com or akwebsoft.com http://www.akwebsoft.com -- 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 gr

CMS for django

2010-11-14 Thread Tim Johnson
Greetings: I would welcome comments on what CMS is compatible with django. I have seen much on the web regarding this topic, but I would suspect that from this ML I am much more likely to hear directly from someone who is deploying a CMS with django. thanks in advance -- Tim tim at johnsons-web

Re: Recommend a book

2010-09-24 Thread Tim Johnson
* Sandro Dutra [100924 09:28]: > "The Definitive Guide to Django: Web Developement Done Right", Apress, > updated Django 1.1 > "Pratical Django Projects", Apress, updated Django 1.1 Thanks for all the input. I know have the means to make a decision. cheers -- Tim tim at johnsons-web.co

Re: Recommend a book

2010-09-23 Thread Tim Johnson
Thank you - Shawn Milochik and Tran Cao Thai. :) thus far. I'll check back in the morning. cheers -- Tim tim at johnsons-web.com or akwebsoft.com http://www.akwebsoft.com -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this g

Recommend a book

2010-09-23 Thread Tim Johnson
FYI: I'm an experienced python programmer, experienced web programmer, work mostly on linux platforms. And I like to start slow and get it down thoroughly. I'm soliciting recommendations for books on learning django. E-book or paper. Paper is preferred. I would prefer to avoid anything geared t

Re: Looking for Lead Django Developer in LA please call 310 571 JOBS

2010-01-24 Thread Jeffrey Johnson
5 years of python is certainly not unreasonable. On Jan 25, 2010, at 0:20, Sam Walters wrote: Is it just me or is asking for 5+ years for django unlikely. http://en.wikipedia.org/wiki/Django_%28web_framework%29 "released publicly under a BSD license in July 2005" On Mon, Jan 25, 2010 at 2:

Re: RESTful API at Django

2009-12-25 Thread Jeffrey Johnson
https://earthdev.burningman.com/hg/bme/file/c1026f82dfaf/apps/api/emitters.py Some preliminary work that ingenieroariel did on a GeoJSON emitter for piston. Pretty rudimentary at this point, but might be a good place to start. Merry Xmas, Jeff On Fri, Dec 25, 2009 at 10:12 AM, Servais Nabil wr

  1   2   >