Re: Speeding up test database creation

2012-11-27 Thread John Maxwell
Hm, I tried commenting out the line 'NAME': '/home/john/database.sqlite', and it still seems to be just as slow, if not slower... On Monday, November 26, 2012 5:56:30 AM UTC-8, Andres Reyes Monge wrote: > > The tutorial uses a sqlite file database not a in memory dat

Re: Speeding up test database creation

2012-11-27 Thread John Maxwell
s. On Tue, Nov 27, 2012 at 3:39 PM, Dennis Lee Bieber wrote: > On Tue, 27 Nov 2012 13:43:37 -0800 (PST), John Maxwell > declaimed the following in > gmane.comp.python.django.user: > > > Hm, I tried commenting out the line > > > > 'NAME': '/home/john/data

Re: background task without celery

2012-12-10 Thread John DeRosa
rnatives to Celery, and came up with a handful of worthy alternatives. See my blog posts at http://seeknuance.com/2012/08/09/my-requirements-for-replacing-celery/ and http://seeknuance.com/2012/08/14/alternatives-to-using-celery/, they might help your search. John -- You received this

Templates caching context when it shouldn't

2012-12-18 Thread John Tipton
s the correct value. Does any one know how to keep django from caching these context variables? Thanks, John -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/m

template caching context variables when no caching enabled.

2012-12-18 Thread John Tipton
I've got the following function that I include in my views to set context variables. Occasionally my templates start caching these variables, no matter what model my views are based on. def set_context_vars(context, model, request=None): """ Set Extra Context Variables """ pr

Re: template caching context variables when no caching enabled.

2012-12-18 Thread John Tipton
I believe I may have solved it, this is the view that kept causing it to happen: def document_revert(request, pk): version = get_object_or_404(reversion.models.Version, pk=pk) document_version = version.object_version.object context = RequestContext(request, {'document': document_versi

Re: Django installation on Hostgator

2013-01-02 Thread John Neumann
You would be correct. You cannot install anything else on HostGator (it's why I left them despite their fantastic customer support). You can see what they do have installed here: http://support.hostgator.com/articles/hosting-guide/hardware-software/python-modules Outside of those things you'r

Re: Django installation on Hostgator

2013-01-02 Thread John Neumann
stall virtualenv and see if you can even get that to work. If you can't then you're probably screwed (again though I'd still suggest switching hosts). On Wednesday, January 2, 2013 10:34:55 PM UTC-6, John Neumann wrote: > > > You would be correct. You cannot install anything els

Correct way to specifiy database-level column defaults

2013-01-10 Thread john . woltman
What is the best way to specify a database level default value with Django? If I want a timestamp column to default to the SQL function now(), is there an accepted way to make it happen? Or to default a boolean column to True? I notice that when I call *manage.py sqlall* I don't see any * DEF

Re: Correct way to specifiy database-level column defaults

2013-01-15 Thread john . woltman
I have read the Django docs on adding custom SQL commands to an app's sql subfolder, so that is what I'm going to do. I'm not yet using South, but I will review it if I start. I agree item #2 seems the hardest problem. On testing, I have found that the Django test runner executes my custom SQL

Re: Why Django admin panel permissions table doesn't show any permissions to add to group?

2013-01-20 Thread John Roach
You are correct. More information is needed. For this you will need to see more of the code. Please check out https://bitbucket.org/johnroach/django-stock-project/ for this. By saying rebuilt django server I meant deleting all tables in specified database. And re-syncdb'ed the project. I reall

Moving a Django website to another server

2013-01-25 Thread John Robertson
basic question, but I just wanted to check before I proceed with it. They are fairly simple, small sites, but still there are thousands of files. Many thanks! John -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this g

Re: Moving a Django website to another server

2013-01-31 Thread John Robertson
Hi there, thanks for all your very helpful responses. Its all a little out of my comfort zone so I might employ someone to do it for me. Any takers/quotes? cheers John On Friday, January 25, 2013 10:20:49 AM UTC, John Robertson wrote: > > Hi there, if I want to move a Django website to a

Splicing geometry by bounding box

2013-03-05 Thread John Baker
Hey I am currently working on a geolocation based game that utilizes a geodjango application to manage querying, parsing, and server geographical data to our client. We are currently using PostGIS to store our OSM data. We are using the OSM tilename system throughout our project and some of our

How to customize Django Admin interface with custom urls and views?

2013-03-06 Thread John James
Hi to all! I'm completely new in Django. All I done is read one Introduction Book by Adrian Holovaty. When I finished I thought I knew enough to build even something simple, because the book is real good and clear. Maybe I could create something simple, but I wanna create my own Administratio

Re: How to customize Django Admin interface with custom urls and views?

2013-03-07 Thread John James
Thanks a lot buddy!! I think I dig deeper by links you have posted and figure out my misunderstandings. Seem I should define my views in application/views.py file and then define the urls rules! That's great news =)) -- You received this message because you are subscribed to the Google Groups

Implementing User login expiration

2013-04-05 Thread John DeRosa
27;m over-thinking this. Has anyone implemented account expiration in a way that deals with users already logged in? Thanks! John -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails fro

Re: [SPAM] Implementing User login expiration

2013-04-08 Thread John DeRosa
equest, then maybe > cache the expiration? > > expire_date = cache.get("%d_expire" % request.user.id) > if not expire_date: >expire_date = request.user.profile.expire_date >cache.set(...) > if expire date < now() >logout(request) > > _Nik Gr

Message processing queue for Django

2013-04-12 Thread John Riley
system. If your workloads have been too short (< 1s) to use our job system effectively, or you've found difficulty creating a multi-stage pipeline with jobs, then you'll want to give queues a try! Best Regards, John -- You received this message because you are subscribed to the Googl

Re: Understanding Django transactions

2013-05-21 Thread John DeRosa
Regardless of whatever comments and corrections may come, I thank you for summarizing what you think the changes will be! I didn't know about these impending changes. John On May 21, 2013, at 4:23 AM, Michael wrote: > > I've been reading up on how transactions work in Dj

need immediate help setting up Apache

2013-05-28 Thread John Fabiani
Hi Folks, I need immediate help setting up Apache on an openSUSE 12.3. I'm willing to pay a little for the help. Currently I have my scripts working using manage.py runserver. But I don't understand what I need to do with Apache. I have to get website up today. I will also have to setup the

Re: need immediate help setting up Apache

2013-05-28 Thread John Fabiani
Yes I have complete control. But I don't know how to set it up. Johnf On 05/28/2013 07:39 AM, Rafael E. Ferrero wrote: you have access to config files of apache ?? like site-available/yoursite.com <http://yoursite.com> to set your virtuals hosts ?? 2013/5/28 John Fabiani

Re: need immediate help setting up Apache

2013-05-28 Thread John Fabiani
rdomain.com>> Options FollowSymLinks -Indexes AllowOverride None 2013/5/28 John Fabiani mailto:jo...@jfcomputer.com>> Yes I have complete control. But I don't know how to set it up. Johnf On 05/28/2013 07:39 AM, Rafael E. Ferrero wrote:

Re: autogenerating SECRET_KEY every time the server runs

2013-06-20 Thread John DeRosa
When we run the development server locally, we often start with an already-existing database. We don't re-initialize the db unless we have to, because there's been a schema change or a change in the value stored in a table's field. So we'd need SECRET_KEY to not change mos

Re: User Permissions

2013-07-30 Thread John DeRosa
Take a look at django-guardian. (http://pythonhosted.org/django-guardian/) John On Jul 30, 2013, at 12:39 PM, Carlos Leite wrote: > Django do not have a "per-row" permission system in the box. > You will have to create that by yourself. > > You may start adding somethin

static files not found at application level

2013-09-15 Thread John Ellenberger
Just went through the whole "getting started" and the only thing that I couldn't get working as described in the tutorial is searching through the static subdirectories. My current configuration is stopping at the top static directory. So with Apache & WSGI configured as:

Re: m2m_changed signal not caught

2013-09-17 Thread John DeRosa
>From memory, I _think_ this catches the signal from the Department model, not >the News model. To catch it when you edit the relationship from a *News* model >form, you need to hook it up ("sender=News.department.through"). On Sep 17, 2013, at 3:59 AM, Roberto López López wrote: > > Hi, >

Re: django-celery connects to localhost but not by ip

2013-09-19 Thread John DeRosa
First things to check: Check the firewall on the RabbitMQ server. Can you access that server? Did you set up the vhost and account on the RabbitMQ server? Look in the RabbitMQ logs. Did the request make it to RabbitMQ? John On Sep 19, 2013, at 7:34 PM, Chad Vernon wrote: > I am us

Re: django-celery connects to localhost but not by ip

2013-09-20 Thread John DeRosa
strange is that the ASyncResult returned > from the task always seems to return False from the .ready() method even > though it seems to have completed the task. Any ideas on that? > > > On Thursday, September 19, 2013 7:36:41 PM UTC-7, John DeRosa (work) wrote: > First things to

Re: Best practice for server-generated downloads?

2013-10-03 Thread John McNamara
Hi, Here is an example of using XlsxWriter from SimpleHTTPServer or Django. It probably doesn't do 100% of what you are looking for but it may help anyway. https://xlsxwriter.readthedocs.org/en/latest/example_http_server.html John -- You received this message because you are subsc

Sessions memory issue

2013-10-24 Thread John Carlo
Hello everybody, I'm a newbie with Django, I love it but something it's not clear to me. So I'm here to make a question. Thank you in advance. I have an application that has some istances of custom classes I wrote. At every client request, every istance creates a big list of strings. Then, a f

Re: Sessions memory issue

2013-10-25 Thread John Carlo
uot;, "r") for key in db.keys(): print repr(key), repr(db[key]) regards Il giorno giovedì 24 ottobre 2013 23:10:43 UTC+2, François Schiettecatte ha scritto: > > John > > There are a couple of ways you can handle this, either you store the files > in a database a

Custom User model admin log always adds Changed password record

2013-11-03 Thread John Zimmerman
Hey everyone, I created a custom User model and admin.py. I'm having as issue in the admin console where if I click save on a user, even without modifying any fields, the user history always adds a 'Changed password.' record. It looks like this used to be a problem ( https://github.com/django/dj

Re: Fabric for dependency management, testing strategy

2013-11-11 Thread John DeRosa
, provisioning new nodes, etc., and it works for me. But I have been thinking about adding Ansible to the mix. YMMV. John On Nov 11, 2013, at 6:47 AM, Avraham Serour wrote: > for dependency management you should use pip, first step is to go through the > docs for fabric (and pip) >

Unicode translation problem

2011-04-22 Thread John Maines
Hello, I am going through the Django Tutorials on the Django home page. All has gone fine, except one thing: When building the admin page, I can't get the unicode translator to work. It is supposed to change "Poll: Poll object" to readable text. It just doesn't work. I am using PostgreSQL set for

Email app is breaking long lines, any fix?

2011-05-05 Thread John Crawford
ackends.filebased.EmailBackend' from django.core.mail import send_mail def send_letter(request): the_text = 'this is a test of a really long line that has more words that could possibly fit in a single column of text.' send_mail('some_subject', the_text, '

Re: Email app is breaking long lines, any fix?

2011-05-06 Thread John Crawford
go's file-based email backend, and actually configure something to send real email. I was hoping to not do this just yet, but so it goes. :) Thanks for the replies. John C> -- You received this message because you are subscribed to the Google Groups "Django users" group. To p

Re: Email app is breaking long lines, any fix?

2011-05-17 Thread John Crawford
Actually, upon looking more at the output, it has *both* "utf-8" and "us-ascii" as the charset. I'm not sure if this is the result of code changes I've made, or I just missed it the first time around - but my Django email output now looks like this: -- MESSAGE FOLLOWS -- Content-Ty

Re: Email app is breaking long lines, any fix?

2011-05-17 Thread John Crawford
> What are you *actually* doing to send this email? This is the basic version - the one with two headers, I was experimenting with a MIMEText object: from django.core.mail import send_mail def page_worked(request): the_text = u'this is a test of a really long line that has more words that co

Re: Email app is breaking long lines, any fix?

2011-05-17 Thread John Crawford
> Actually, it doesn't. It only has utf-8. The first nine lines of your pasted output are the actual email headers. Okay, that makes more sense. That particular experiment I was using a MIMEObject's to_string() function. Although I had passed in plain text to the object, clearly it put its own hea

Static files

2011-05-18 Thread John Wheeler
Dude, STATICFILES_DIRS = ('/home/jwheeler/projects/pwscheduler/static',) STATIC_URL = '/static/' TEMPLATE_LOADERS = ( 'django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader', 'django.template.loaders.eggs.Loader', ) INSTALLED_APPS = ( 'django.contrib.auth',

Re: Static files

2011-05-18 Thread John Wheeler
I had to change return render_to_response('index.html', {'form': form}) to return render_to_response('index.html', {'form': form}, context_instance=RequestContext(request)) This very technical sounding bit escaped me If {{ STATIC_URL }} isn't working in your template, you're probably n

Re: Static files

2011-05-18 Thread John Wheeler
Yeah, I didn't mean to be a troll. I should've mentioned that everything else in django has been pretty fantastic despite this one, IMO, major usability oversight. Maybe I'm just not in with serving things off S3 or whatever you assume most people will do, which is probably a decent assumption

learning Django after a break -- site tutorials, examples

2011-05-19 Thread John Griessen
I've gone through the Django 1.2 tutorial to the point of creating an admin site, then had to switch to other work for months. What are some good simple example sites or tutorials for creating a top page ( index.html ) and using templates with css? John -- You received this message be

Re: learning Django after a break -- site tutorials, examples

2011-05-20 Thread John Griessen
ting a "home" page is fairly simple. In urls.py you need to recognise a "non-link" which just means www.mydomain.com/ all by > itself and make that call a view which renders the particular template which you want displayed. Thanks! Very helpful, John Griessen -- You rece

Re: My tool to generate django code

2011-05-21 Thread John Griessen
running app with data piped here and there as you want it quickly. John -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email

Experiences with virtualenv + Django?

2011-05-23 Thread John Crawford
n CentOS, which uses Python 2.4 for everything, alas. So either I downgrade all my existing 2.6 code to 2.4, or I install 2.6 on the VPS without breaking it, which would require virtualenv. (Or changing hosting, which I'm also seriously considering...) John C> -- You received this message bec

Re: Experiences with virtualenv + Django?

2011-05-24 Thread John Crawford
l not finished yet, but have gotten to a clean 'import django' with Python 2.6, apparently without disturbing Python 2.4 at all. :) John C> -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group

Re: Experiences with virtualenv + Django?

2011-05-24 Thread John Crawford
(sigh) Naturally as soon as I hit the [send] button, another question comes up :) I switched to my VPS, and was thinking about where to create a project, when I was wondering: How do people generally organize their virtualenv directories, and Django projects? I'm on as root on my machine, and und

Embedded Inline Formsets

2011-05-28 Thread John Anderson
I have 3 Models: class Workflow(models.Model): name = models.CharField(max_length=255) company = models.ForeignKey(Company) class Meta: unique_together = ('name', 'company') class Milestone(models.Model): workflow = models.ForeignKey(Workflow) tasks = models.ManyToMan

Re: Email app is breaking long lines, any fix?

2011-06-09 Thread John Crawford
DebuggingServer localhost:1025 Sigh... Live and learn. John C> -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-u

Re: storing django object into javascript variable/array

2011-06-15 Thread John Finlay
On 6/15/11 8:59 AM, jay K. wrote: Hello, I apologize for seeming too impatient or rude, actually I'm a bit in a hurry because I was given a project and was told that it was urgent. I miscalculated how much time it was going to take me to learn django Anyway, what I want to do is to use the v

Re: Possible interest in a webcast/presentation about Django site with 40mil+ rows of data??

2011-06-23 Thread John DeRosa
Me On Jun 23, 2011, at 7:49, Chris Calitz wrote: > Sounds really cool. I'm definitely in. > > On 22 Jun 2011, at 14:16, "Cal Leeming [Simplicity Media Ltd]" > wrote: > >> Hi all, >> >> Some of you may have noticed, in the last few months I've done quite a few >> posts/snippets about handl

anybody using PhoneGap with Django

2011-07-07 Thread John Fabiani
Hi guys, I'm wondering if anyone has had any success with PhoneGap and Django? Johnf -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email

Re: anybody using PhoneGap with Django

2011-07-07 Thread John Fabiani
On Thursday, July 07, 2011 08:48:51 pm Andy McKay wrote: > On 2011-07-07, at 2:22 PM, John Fabiani wrote: > > I'm wondering if anyone has had any success with PhoneGap and Django? > > Yes. > -- > Andy McKay > a...@clearwind.ca > twitter: @andymckay LOL - I g

Re: anybody using PhoneGap with Django

2011-07-08 Thread John Fabiani
On Friday, July 08, 2011 10:41:02 am br wrote: > I am currently in the middle of a project where we are planning on > using Django with PhoneGap . . . Haven't completed yet, or gotten to > the PhoneGap part of it, so can't report its success or not yet. > > Basically, we are using jQuery Mobile to

Re: auto_now, auto_now add -- good or bad?

2011-07-15 Thread John DeRosa
On Jul 15, 2011, at 9:22 AM, Shawn Milochik wrote: > Considering these facts, I'm wondering what the consensus is in the community: > >A. They're still there because they're too annoying to deprecate > or just not important enough to spend time on. > >B. They're useful shortcuts and thei

Re: Managing static files - beginner's question

2011-07-26 Thread John Sheridan
ath.dirname(__file__), 'templates/public').replace('\\','/'), to do this, you will need to have ' import os.path ' included at the top of the file (settings.py). Then you can refer to the directory using {{ STATIC_URL }} as you had intended. Hope that helps!

newbie problem with accepting form input

2010-12-13 Thread john doe
Dear all, I am making a small Django app for a bug tracking system to get my head round this awesome framework. I am facing a problem wherein when accepting input via a form generated by models. The classes are listed below (not in its entirety). [code] class Report(models.Model): #type =

Re: newbie problem with accepting form input

2010-12-13 Thread john doe
On Mon, Dec 13, 2010 at 6:12 PM, Titan, Jer-ming Lin wrote: > Hi John, > > each element in the choices is a two elements tuple. first one is > the real data will be saved in the database and second one will > present on the form. therefore, the max_length of 'type' fi

Re: newbie problem with accepting form input

2010-12-14 Thread john doe
On Tue, Dec 14, 2010 at 5:16 AM, Jer-ming Lin wrote: > Hi John, > >plz modify the Incident Model like Report Model, > > class Incident(models.Model): > report = models.ForeignKey(Report) > INCIDENT_CHOICES = ( > ('SF', 'SegFault'), >

Re: newbie problem with accepting form input

2010-12-14 Thread john doe
On Tue, Dec 14, 2010 at 9:19 AM, john doe wrote: > > > On Tue, Dec 14, 2010 at 5:16 AM, Jer-ming Lin wrote: > >> Hi John, >> >>plz modify the Incident Model like Report Model, >> >> class Incident(models.Model): >> report =

Re: newbie problem with accepting form input

2010-12-14 Thread john doe
wledgement_date=datetime.datetime(datetime.MAXYEAR, 1, 1) object.most_recent_followup_date=datetime.datetime(datetime.MAXYEAR, 1, 1) object.resolution_date=datetime.datetime(datetime.MAXYEAR, 1, 1) object.resolved=False return object [/code] and in my models.py I have [code] class ReportForm

Re: newbie problem with accepting form input

2010-12-14 Thread john doe
On Tue, Dec 14, 2010 at 9:17 PM, john doe wrote: > > > On Tue, Dec 14, 2010 at 2:15 PM, Titan, Jer-ming Lin wrote: > >> maybe your view function gets wrong. post it! XDD >> > looking at the request.POST itself I see: [code] [/code] which shows the type choices for re

Re: newbie problem with accepting form input

2010-12-15 Thread john doe
me to move forward. BR > Jer-ming > > 2010/12/15 john doe : > > > > > > On Tue, Dec 14, 2010 at 9:17 PM, john doe < > thebiggestbangthe...@gmail.com> > > wrote: > >> > >> > >> On Tue, Dec 14, 2010 at 2:15 PM, Titan, Jer-ming

django/contrib/auth/models.py goes nuts

2010-12-22 Thread John Fabiani
Hi, I had a working website for about the last 2 weeks. I was using a test database (Postgres). I am also using SVN for my code and have tried to revert back many versions and I still get these new errors. The error first appeared as datetime has no Attribute 'None' for a line in my views.py

Re: django/contrib/auth/models.py goes nuts

2010-12-22 Thread John Fabiani
On Wednesday, December 22, 2010 06:44:47 pm John Fabiani wrote: > Hi, > I had a working website for about the last 2 weeks. I was using a test > database (Postgres). I am also using SVN for my code and have tried to > revert back many versions and I still get these new errors. &g

Re: django/contrib/auth/models.py goes nuts

2010-12-22 Thread John Fabiani
On Wednesday, December 22, 2010 07:18:15 pm John Fabiani wrote: > On Wednesday, December 22, 2010 06:44:47 pm John Fabiani wrote: > > Hi, > > I had a working website for about the last 2 weeks. I was using a test > > database (Postgres). I am also using SVN for my c

Re: django/contrib/auth/models.py goes nuts

2010-12-23 Thread John Fabiani
On Thursday, December 23, 2010 12:39:44 am bruno desthuilliers wrote: > On 23 déc, 06:33, John Fabiani wrote: > > (snip) > > John, may I suggest that instead of trying whatever comes to mind and > wonder what happens, you spend some times learning Python, specially > t

Re: django/contrib/auth/models.py goes nuts

2010-12-23 Thread John Fabiani
On Thursday, December 23, 2010 09:05:21 am Steve Holden wrote: > On 12/23/2010 11:54 AM, John Fabiani wrote: > > On Thursday, December 23, 2010 12:39:44 am bruno desthuilliers wrote: > >> On 23 déc, 06:33, John Fabiani wrote: > >> > >> (snip) > >> &g

tutor -request

2010-12-23 Thread John Fabiani
Hi, I have been looking for a kind soul to help me learn Django. I am self taught and most of my work has been done using "try it and see if it works". I am willing to pay for an hours time because I will have to deploy very soon and will need assistance with installing on a Apache server. I'

Re: tutor -request

2010-12-23 Thread John Fabiani
On Thursday, December 23, 2010 10:18:16 am John Fabiani wrote: > Hi, > I have been looking for a kind soul to help me learn Django. I am self > taught and most of my work has been done using "try it and see if it > works". I am willing to pay for an hours time because I

Problem with django auth login_required and lighttpd

2011-01-11 Thread John Finlay
http://server/accounts/login/?next=/mysite.fcgi/ After the user login lighttpd returns a 404 looking for http://server/mysite.fcgi/mysite.fcgi How do I fix this? A change in urls.py or a change in lighttpd.conf? Thanks john -- You received this message because you are subscribed to the Google G

Re: Odd problem with static files and Lighttpd

2011-01-17 Thread John Finlay
What do the lighttpd logs say? On 1/17/11 2:41 AM, sdonk wrote: Hi to everybody, I'm facing with a curious problem with Lighttpd and static files serving. Media admin is served by Lighttpd, but mymedia is not served by Lighttpd. This is a snippet of my lighttpd.conf alias.url = ( "/m

Writing a DB backend

2011-02-14 Thread John Finlay
me to use the django models and model forms. Does this seem like a reasonable thing to try? Are there examples of backends that do something similar? Or is this just to difficult to add in for the hoped for gain in using django models? Thanks John -- You received this message because you are

Re: Strange error in django

2015-04-22 Thread John DeRosa
If you get an exception, the “except” clause will drop down into the “return” statement, and classification_serializer will be referenced before it’s assigned to. (Because it never was assigned to.) John > On Apr 22, 2015, at 2:36 PM, Cristian Javier Martinez > wrote: > > Hi! I

Re: Strange error in django

2015-04-22 Thread John DeRosa
ctive prompt, you can single-step it. John > On Apr 22, 2015, at 4:10 PM, Cristian Javier Martinez > wrote: > > Thanks for your reply John DeRosa but the question is about what is causing > the exception because I'm not using threads at all and the error says > "

Re: Centos 6.5 Python 3.3.x Django 1.6 Apache 2.2

2014-08-18 Thread John Schmitt
I realise I'm late to this conversation, but I had to do this for my own use recently except that I used Centos 7 and Python 3.4. To do this for me I hacked up a bash script and put it on github: https://github.com/marmalodak/centos_python3_django_setup/blob/master/mkenv3 I compile both Python

Re: extremely slow django migrations

2014-09-10 Thread John Schmitt
lter the database. However, despite > deprecation, `syncdb` should not be having an effect on your migration speeds. Which file? What do I look for? What do I 'verify' and to what should it be compared? John -- You received this message because you are subscribed to the Google Gr

Re: extremely slow django migrations

2014-09-12 Thread John Schmitt
On Wed, Sep 10, 2014 at 02:06:09PM -0500, Andrew Pinkham wrote: > On Sep 10, 2014, at 12:25 PM, John Schmitt wrote: > > Which file? What do I look for? What do I 'verify' and to what should it > > be compared? > > When you run `makemigrations app_name`, th

django 1.7 Groups

2014-09-12 Thread John Rodkey
How can I modify the auto generated auth groups to include a foreign key? We wish to add a foreign key to show group ownership to a company table. For example, Company A could create a librarians group and assign users. Company B could create a brokers group and assign users -- You received t

Re: django 1.7 Groups

2014-09-15 Thread John Rodkey
I just thought of this this morning too. Thanks for the recommendation -- 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

Re: What is *the* django 1.7 IDE which is opensource & multiplattform

2014-09-24 Thread John Schmitt
Do I still need to ssh to the server and manually restart httpd or launch manage.py as needed? John -- 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

Re: What is *the* django 1.7 IDE which is opensource & multiplattform

2014-09-24 Thread John Schmitt
On Wed, Sep 24, 2014 at 03:43:23PM -0400, Adam Stein wrote: > On Wed, 2014-09-24 at 12:03 -0700, John Schmitt wrote: > > > On Wed, Sep 24, 2014 at 07:40:51AM -0400, Adam Stein wrote: > > > Not sure what you are looking for in terms of Django template support. > > &g

Re: What is *the* django 1.7 IDE which is opensource & multiplattform

2014-09-24 Thread John Schmitt
On Wed, Sep 24, 2014 at 04:33:35PM -0500, Javier Guerra Giraldez wrote: > On Wed, Sep 24, 2014 at 4:30 PM, John Schmitt wrote: > > When I'm creating a dummy project to test my apache configuration and/or my > > management commands, or trying to assemble a complicated query

custom query app

2014-11-13 Thread John Schmitt
Discussion and wild-eyed ideas welcome. John -- 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 gr

Re: custom query app

2014-11-14 Thread John Schmitt
On Thu, Nov 13, 2014 at 03:08:01PM -0500, Clifford Ilkay wrote: > On 11/13/2014 02:33 PM, John Schmitt wrote: > > I have a big django project with multiple apps, models, and the models have > > quite a few fields. > > > > A request came that asked for a page that

Is it wrong to disable a lot of the core django features?

2014-11-21 Thread John Rodkey
We are evaluating django for a new internal CRM project and have issues using many of the built in features including: the base user, permissions, and authentication. We do not wish to use the built-in admin... The level of complexity for our permissions will be based on the employees job func

Re: Is it wrong to disable a lot of the core django features?

2014-11-21 Thread John Rodkey
Hi Carl, Thank you for the quick answer. Using your recommendation, can we simply disable the admin, groups and permissions, but still use the Authentication (login/sessions)? We will create our own authorization module for permissions/roles and groups. Best, John On Friday, November 21

Re: Is it wrong to disable a lot of the core django features?

2014-11-21 Thread John Rodkey
UTC-6, Carl Meyer wrote: > > Hi John, > > On 11/21/2014 02:33 PM, John Rodkey wrote: > > Thank you for the quick answer. Using your recommendation, can we > simply > > disable the admin, groups and permissions, but still use the > Authentication > > (

Re: Is it wrong to disable a lot of the core django features?

2014-11-22 Thread John Rodkey
create a group for each company/branch then add each > user to their respective groups upon registration. > > Each groups may have custom permissions, so you are not stuck with the > built in add/edit/delete rights. You may create any type of permission and > check for it in

Django 1.7: How to migrate data between two external apps

2014-12-13 Thread John-Scott
] The migration itself works as expected. However if I now remove foo_tag from INSTALLED_APPS, Django will now give an error: KeyError: "Migration my_app.0002_auto_20141212_1951 dependencies reference nonexistent parent node ('foo_tag', '0001_initial')" What'

Re: Django 1.7: How to migrate data between two external apps

2014-12-16 Thread John-Scott
On Tuesday, December 16, 2014 9:05:35 AM UTC-5, Markus Holtermann wrote: > > Hey John-Scott, > > I'm afraid but I don't see an obvious solution. There are 2 ways you could > work on the issue, I don't like either: > > 1. remove all references to the "fo

eCommerce Search

2014-12-17 Thread John Rodkey
Hi All, I apologize if this has been answered, but what is the best way to search/query a model based on filters. For example, say we are setting up a shoe site. What is the best way to allow customers to search for shoes by brand, color, size, and/or price. I would prefer to make these dropd

Re: eCommerce Search

2014-12-17 Thread John Rodkey
Yes, that is what I'm looking for. I'm new to the Django world and was curious if there is already a good existing package. I will search for django faceted search. On Wednesday, December 17, 2014 2:30:13 PM UTC-6, werefrog wrote: > > Hi John, > > You might want to sea

Re: ANN: Django website redesign launched

2014-12-17 Thread John Schmitt
Looks nice to me. Pardon me please for being naive, but will the fonts, colours, and layouts be ported to the Django app itself? That is, will the new layout and colour scheme be available to my Django 1.7 app if I were to do the following? $ pip install Django --upgrade John -- You

Re: Django 1.7: How to migrate data between two external apps

2014-12-17 Thread John-Scott
ded. Would you mind opening a ticket on > https://code.djangoproject.com/ where you state the problem (e.g. link to > this discussion). Thanks. > > /Markus > > On Wednesday, December 17, 2014 6:01:05 AM UTC+1, John-Scott wrote: >> >> My 'solution' was very sm

onetoone field and memory issue

2013-11-26 Thread John Carlo
Hello everybody, I have a memory issue and I'm looking for some suggestions. I have the following model class Entity(models.Model): item= models.OneToOneField(Bigdata, blank = True,null=True) Bigdata is a table with 150.000+ items In the admin interface, when I try to add a new Entity

Re: onetoone field and memory issue

2013-11-26 Thread John Carlo
great, now it works like a sharm Thank you very very much! 2013/11/26 James Bennett > > https://docs.djangoproject.com/en/1.6/ref/contrib/admin/#django.contrib.admin.ModelAdmin.raw_id_fields > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Dja

Re: Presentation ideas?

2014-01-16 Thread John DeRosa
minutes. You can more easily network, because tutorials are less frenetic than the full-conference madhouse. John On Jan 16, 2014, at 2:25 PM, Keith Edmiston wrote: > I'm scheduled to give a talk/presentation to my colleagues on why attending > tutorials and sprints at a conference is a

<    4   5   6   7   8   9   10   11   12   >