Re: Migrating an unmigrated database from 1.6 to 1.7

2016-07-07 Thread Remco Gerlich
If it's a single database and a single field, is it feasible to just add the field by hand using SQL? Greetings, Remco Gerlich On Thu, Jul 7, 2016 at 1:05 PM, bobhaugen <bob.hau...@gmail.com> wrote: > We're upgrading an app from django 1.4 step-by-step through all the > versions at

Re: Best Practices URL Patterns

2016-07-07 Thread Remco Gerlich
Why is it a problem if the URLs are guessable? In a vacuum, I would consider that a good thing. Remco Gerlich On Wed, Jul 6, 2016 at 4:09 PM, 'davidt' via Django users < django-users@googlegroups.com> wrote: > I am looking for advice with regard to the following: > > I have a

Re: Django query returns nothing for legacy databse

2016-06-09 Thread Remco Gerlich
Do you have a database router set up to tell Django which models are stored in which database? Greetings, Remco Gerlich On Thu, Jun 9, 2016 at 2:13 PM, Galil <il...@ajenta.net> wrote: > Hello, > > I am using two databses for my Django app and one of them is an existing &

Re: Generation of Session IDs in Django

2016-04-28 Thread Remco Gerlich
using the PRNG). Greetings, Remco Gerlich On Thu, Apr 28, 2016 at 7:23 AM, Arun S <arun@gmail.com> wrote: > > Hi, > > Just trying to get a few answers on the Session IDs in Django. > > > how does Django Generate Session IDs/Session Keys. > It seems that Django

Re: Parsing PHP-style GET parameters for lists and dicts in Django

2016-02-26 Thread Remco Gerlich
lready. Greetings, Remco On Fri, Feb 26, 2016 at 11:24 AM, James Schneider <jrschneide...@gmail.com> wrote: > > On Feb 26, 2016 1:21 AM, "Remco Gerlich" <re...@gerlich.nl> wrote: > > > > I need to work with DataTables, a jQuery-plugin for sortable

Re: Running a Django site on a standalone Windows laptop

2016-02-26 Thread Remco Gerlich
there are dockers and virtual machines et cetera, but I'm optimistic we can simply use Windows. Thanks, Remco Gerlich On Tue, Feb 16, 2016 at 10:34 PM, Mike Dewhirst <mi...@dewhirst.com.au> wrote: > I agree with James. Apache and mod_wsgi is fine on Windows. There may be > some Windows-specific

Parsing PHP-style GET parameters for lists and dicts in Django

2016-02-26 Thread Remco Gerlich
uot;searchable": True, "orderable": True, "search": {"value": '', "regex": False}}, ] Does anybody know of any Python or Django app / library that does this? Would it be possible to do this in a FormField? (convert many GET parameters into

Re: Running a Django site on a standalone Windows laptop

2016-02-16 Thread Remco Gerlich
We thought about that and it's certainly an option, but 1) the communication with the background tasks running on the Windows host is going to be tricky and 2) I have no experience with running it as a service. So I'd prefer running on Windows directly. Remco Gerlich On Tue, Feb 16, 2016 at 3

Running a Django site on a standalone Windows laptop

2016-02-16 Thread Remco Gerlich
the Python/Django code Windows compatible pretty easily, but not the background software, so it will be a Windows laptop that will run everything. What's the best way to run Django as a service under Windows? Is Apache / ModWSGI feasible? Remco Gerlich -- You received this message because you

Re: ID for users of Speedy Net

2016-02-05 Thread Remco Gerlich
. It's key to do this at the beginning of the project, since it's really hard to migrate to this later. You can always change your custom model, but switching from the default to a custom model is nontrivial. Remco Gerlich On Fri, Feb 5, 2016 at 9:22 PM, Uri Even-Chen <u...@speedy.net> wrote:

Re: Scaling Django

2016-02-03 Thread Remco Gerlich
so from that old job, and they take a while to adjust to the new tools. First let them get productive with what exists, _then_ let them gather real statistics about real problems when they want to change something. You can have scalibility issues and solve them with whatever framework, Django included. Re

Re: Debugging Django with Debug set to False

2016-01-05 Thread Remco Gerlich
If it is the exception tracebacks you are after, consider setting up a Sentry ( https://getsentry.com/ ) server to send the error / exception logs of all your sites to. Whenever something bad happens, it'll show up there, with full tracebacks. Greetings, Remco Gerlich On Mon, Jan 4, 2016 at 6:33

Re: Windows browser vs Django app running on Ubuntu in a VirtualBox

2015-12-05 Thread Remco Gerlich
t; to listen to all interfaces. Greetings, Remco Gerlich On Sat, Dec 5, 2015 at 10:07 PM, bobhaugen <bob.hau...@gmail.com> wrote: > Our friend Chris Troutner installed our Django 1.4 app on Windows in > a VirtualBox running Ubuntu. > > He could access the Django app from the browser in Ub

Re: Bi-directional ManyToMany with through gets broken when creating test database

2015-12-04 Thread Remco Gerlich
One, from that error message alone I can't figure out what is happening and why when you run tests, so I can't help there. But two: you don't have a ManyToManyField, you have TWO ManyToManyFields. If you define a many to many field on one model, than it's automatically also defined on the other

Re: can I write Django a client consuming RESTfull api from elsewhere

2015-11-03 Thread Remco Gerlich
do the API requests in the background using Celery, and show the results some other way. Remco Gerlich On Tue, Nov 3, 2015 at 12:44 PM, kk <krm...@gmail.com> wrote: > Dear all, > I wish to know if I need to do some thing special for consuming a RESTfull > server from some other p

Using South in Django 1.7+

2015-10-08 Thread Remco Gerlich
situation, and then apply new migrations from there... Greetings, Remco Gerlich -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-user

Re: Reverse for 'post_detail' with arguments '()' and keyword arguments '{'pk': 1}' not found. 1 pattern(s) tried:

2015-09-22 Thread Remco Gerlich
According to the error, your pattern starts with $, which is an obvious mistake. But the "url.py" you quote has ^. Maybe it was using an old version, or you haven't copied the right one. Greetings, Remco Gerlich On Sat, Sep 19, 2015 at 9:42 AM, sankar vasu <sankarmc...@gmail.com&

Re: How to serve any static directory?

2015-09-03 Thread Remco Gerlich
Do you use a webserver "in front" of Django, like Nginx or Apache? What we do: - In *development* (when DEBUG=True), use django.views.static.serve to serve a file: https://docs.djangoproject.com/en/1.8/ref/views/#django.views.static.serve - In *production*, let Django do what it needs to do

Re: Turn off migrations completely in Django 1.7

2015-08-26 Thread Remco Gerlich
be use a two-database solution with a router, one database for the Django-internal tables that want to be able to migrate, and one for your company's data that always returns allow_migrate False? Greetings, Remco Gerlich -- You received this message because you are subscribed to the Google Groups

Re: converting string to list

2008-01-29 Thread Remco Gerlich
Hi, Apparently you want an empty list if query has a value, and a list with one element otherwise (so the "if query" works). query_string = request.POST.get('q', '') if query_string: query = [ query_string ] else: query = [] Reading the Python tutorial probably wouldn't hurt. Remco On

Re: How can I parse and process the contents of an URL?

2008-01-28 Thread Remco Gerlich
On Jan 28, 2008 5:28 PM, Thomas Guettler <[EMAIL PROTECTED]> wrote: > def url_head(request): >c=urllib.urlopen(request.GET['url']) >content=c.read() > http://example.com/url_head?url=file:/etc/passwd It's very important to do some basic sanity checking on the url. Just

Re: more than one field as a primary key

2008-01-15 Thread Remco Gerlich
together, use (as an inner class inside your model class): class Meta: unique_together = [("datasetID","filename","timeOfRemoteMOD")] Remco Gerlich On Jan 15, 2008 12:52 PM, Nader <[EMAIL PROTECTED]> wrote: > > Hallo, > > I have

Model advice, i18n and content

2007-12-12 Thread Remco Gerlich
have taken, I can't be the first one with this sort of issue. Greetings, Remco Gerlich --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dj

Re: Will there be a django 0.97 release ?

2007-11-09 Thread Remco Gerlich
stable enough to recommend to people that they just use trunk, it's stable enough to release a 0.97? Any huge issue that comes up can always be a 0.97.x. All the objections earlier also apply to people using trunk. Remco Gerlich --~--~-~--~~~---~--~~ You received th