Re: I can't syncdb via django_pyodbc of Django.

2014-12-12 Thread Sugita Shinsuke
Hello Fred Stluka Thank you for detailed document. I resolved syncdb in Windows OS. My SQL Server setting was something wrong. I will try Linux edition also. 2014年12月12日金曜日 3時03分35秒 UTC+9 Fred Stluka: > > Sugita, > > Django does work with MS SQL Server, but not as well as with > other DBs.

Caching for django.contrib.sites

2014-12-12 Thread Tom McKenzie
Hello All Is there a way to cache the database queries for django.contrib.sites? We are running 1.4.15 at the moment and we planning to upgrade to 1.7.x soon. Can I setup my own "custom" sites model with the same fields so I don't have to change the database table name? I have been trying Cac

Re: Seeking for advise on usage MySQL together with MongoDB

2014-12-12 Thread Collin Anderson
Hi Cal, Thanks. I'm always looking for more pain points about Django that could be improved. Collin On Friday, December 12, 2014 1:05:02 PM UTC-5, Cal Leeming wrote: > > Hi Collin, > > Just a few comments; > > On Fri, Dec 12, 2014 at 5:42 PM, Collin Anderson > wrote: >> >> Hi, >> >> Re: the h

Re: Seeking for advise on usage MySQL together with MongoDB

2014-12-12 Thread Cal Leeming
Hi Collin, Just a few comments; On Fri, Dec 12, 2014 at 5:42 PM, Collin Anderson wrote: > > Hi, > > Re: the hacker news thread, (sorry for getting a little off topic,) I just > wanted to mention a few places where we've tried to improve some of those > things recently: > - The ORM is still slow,

Re: Seeking for advise on usage MySQL together with MongoDB

2014-12-12 Thread Carl Meyer
On 12/12/2014 10:42 AM, Collin Anderson wrote: > Re: the hacker news thread, (sorry for getting a little off topic,) I just > wanted to mention a few places where we've tried to improve some of those > things recently: > - The ORM is still slow, but we've added prefetch_related() and improved >

Re: PostGis, GeoDjango. How to install a updated version?

2014-12-12 Thread Alex Mandel
On 12/12/2014 07:06 AM, Collin Anderson wrote: > Hi, > > What happens when you try? > > Collin > > On Wednesday, December 10, 2014 11:03:16 AM UTC-5, Bruno Messias wrote: >> >> >> Someone managed to install postgis 2.4 and gdal 1:11 on a Ubuntu >> distribution 14. I followed several tutorials.

Re: fdv

2014-12-12 Thread Collin Anderson
Hi, Are you asking what the admin.py file is for? It's for the django-admin: https://docs.djangoproject.com/en/dev/intro/tutorial02/#make-the-poll-app-modifiable-in-the-admin Collin On Wednesday, December 10, 2014 9:29:57 PM UTC-5, Kadhir Mani wrote: > > what purpose using admin.py > -- You r

Re: Seeking for advise on usage MySQL together with MongoDB

2014-12-12 Thread Collin Anderson
Hi, Re: the hacker news thread, (sorry for getting a little off topic,) I just wanted to mention a few places where we've tried to improve some of those things recently: - The ORM is still slow, but we've added prefetch_related() and improved select_related() which allows you do use fewer queri

Re: Need to search through several tables using one model

2014-12-12 Thread Vijay Khemlani
Just using the ORM I think not You could 1. Make a raw sql query using UNIONs for each table 2. Make a common superclass for the models with th search field 3. Use an external search engine (elasticsearch, etc) and store the entries for the required models under the same index. Finally, you co

Need to search through several tables using one model

2014-12-12 Thread Damjan Dimitrioski
Hi, Is there a way to make a model that links several db tables in one model, so that can be used in a change list view ? Most importantly, I need to be able to use the search field, can this be accomplished ? Regards. -- You received this message because you are subscribed to the Google Grou

Re: Add another link missing in Chrome

2014-12-12 Thread Timothy Good
Russ, Bingo! I cleared Chrome's images & files "From the beginning of time" (now there is a weird idea) and it was fine. Much appreciated. Tim On Saturday, December 6, 2014 9:15:43 PM UTC-5, Russell Keith-Magee wrote: > > Hi Timothy, > > No two browsers will ever render things *identically*,

Re: Django-compressor manifest.json problem on Heroku

2014-12-12 Thread Collin Anderson
Hi, Do you have django caching configured? If not, then caching will only be per-process and each process will need to fetch the information. (I'm assuming CachedS3BotoStorage uses django's cache.) Collin On Wednesday, December 10, 2014 11:05:35 AM UTC-5, Guy Tamir wrote: > > Hey all, > > I'm

Re: PostGis, GeoDjango. How to install a updated version?

2014-12-12 Thread Collin Anderson
Hi, What happens when you try? Collin On Wednesday, December 10, 2014 11:03:16 AM UTC-5, Bruno Messias wrote: > > > Someone managed to install postgis 2.4 and gdal 1:11 on a Ubuntu > distribution 14. I followed several tutorials. I fixed many errors, but the > only thing I can do is instal an

Re: Hierarchical User Groups

2014-12-12 Thread Sergiy Khohlov
I have a code for product and product category. Look like it is a same task. Are you interested in ? Many thanks, Serge +380 636150445 skype: skhohlov On Fri, Dec 12, 2014 at 12:37 AM, Wellington Cordeiro wrote: > > I'm building a project where we need to have a hierarchical system of >

Re: Can anyone give me a suggestion or a recommendation as to how I can access the current user's username in the models.py?

2014-12-12 Thread malte . dik
Thanks Mike and Russell, this is very helpful for starters. Do you have some more verbose code examples I can use as crutches while I hobble along the path of understanding Django? Especially an expansion on something like "All the admin save handlers" would be much appreciated. For me every ch

Determine content-type of page in middleware class Django

2014-12-12 Thread Artie
Well, I have middleware class which is required to determine content-type of rendered page and if it is 'txt/html', then do some action. I've started just from seeing what content-types do I have on page and here is first problem I faced: class StatsMiddleware(object): def process_view(s