Re: extract data from MS SQL database

2015-09-14 Thread James Schneider
Are you talking about MySQL or Microsoft SQL Server? If you Google Django and mssql, you'll see a few packages with varying levels of support for particular Django versions and MS SQL. -James On Sep 14, 2015 9:45 PM, "Tom Lockhart" wrote: > > > On Sep 14, 2015, at

Re: extract data from MS SQL database

2015-09-14 Thread Tom Lockhart
> On Sep 14, 2015, at 21:12, sum abiut wrote: > > Hi all, > Can someone please point me to right direction. I am trying to extract data > from an existing ms sql database. i just need some direction to get started. If you are trying to port your data from MySQL to

extract data from MS SQL database

2015-09-14 Thread sum abiut
Hi all, Can someone please point me to right direction. I am trying to extract data from an existing ms sql database. i just need some direction to get started. Cheers, Sum -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

Re: migration error "geo_db_type" when using postgres as second database for geodjango

2015-09-14 Thread Thomas Lockhart
On 9/14/15 7:10 PM, Wenyao Xue wrote: Thanks, I guess I have to wait for 1.9 to release then 在 2015年9月15日星期二 UTC+8上午12:21:58,Tim Graham写道: This is a bug that will be fixed in Django 1.9. https://github.com/django/django/commit/0cc059cd104cdb70340bd08e597d403d80dc42a6

Re: migration error "geo_db_type" when using postgres as second database for geodjango

2015-09-14 Thread Wenyao Xue
Thanks, I guess I have to wait for 1.9 to release then 在 2015年9月15日星期二 UTC+8上午12:21:58,Tim Graham写道: > > This is a bug that will be fixed in Django 1.9. > > > https://github.com/django/django/commit/0cc059cd104cdb70340bd08e597d403d80dc42a6 > > On Monday, September 14, 2015 at 7:35:15 AM UTC-4,

Django split pane with highlighting

2015-09-14 Thread Arnab Banerji
Hi all - here is what I am trying to achieve - I need a split pane view with the following contents: (1) the right half will contain a bunch of links, (2) the left half will be one long static document Depending on which link is clicked on the right hand side, I want the appropriate section

Re: access django admin got error 500

2015-09-14 Thread erik freaks
I got this exception value "no such column : django_content_type.name" in this debug show that I'm using django 1.7.6, but when I check to my virtualenv django version is 1.8 On Fri, Sep 11, 2015 at 2:55 PM, asarkar1...@gmail.com < asarkar1...@gmail.com> wrote: > Where are you hosting this web

Advanced Annotate

2015-09-14 Thread Paolo C.
I've posted this issue on Stackoverflow Given this model: from django.db import models class Post(models.Model): text = models.CharField(max_length=255) class Comment(models.Model): text =

Re: HTTPS instead of HTTP in view

2015-09-14 Thread James Schneider
To clarify, are you running this on a full web server such as Apache? If so, do you have directives in the webserver configuration that are handling the redirection to HTTPS? Or are you using the built-in runserver? The built-in runserver has no support for HTTPS. Do you have any 3rd party

Re: HTTPS instead of HTTP in view

2015-09-14 Thread Hugo Kitano
This is my settings.py, but I've commented out all the code I added -- 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.

HTTPS instead of HTTP in view

2015-09-14 Thread Hugo Kitano
Only one view in my project uses HTTPS instead of HTTP, now, after me fooling around with SSL's and cookies and such. My view for that project is simple enough that it isn't the problem It's the home page of the project. Any ideas for why only one view uses HTTPS? I can't use the view in

Re: http://stackoverflow.com/questions/32549006/how-to-automatically-save-the-headline-for-every-new-article-provided-my-3rd-par

2015-09-14 Thread Daniel Roseman
On Monday, 14 September 2015 08:35:42 UTC+1, n00b wrote: > > > http://stackoverflow.com/questions/32549006/how-to-automatically-save-the-headline-for-every-new-article-provided-my-3rd-par > Yes, that is a link. Congratulations. -- DR. -- You received this message because you are subscribed to

Re: How to get Label alignment to top of TextField in form

2015-09-14 Thread Dmitry Homenok
Hey Mike, Believe, you have to check the following methods of BaseForm class: - as_p - as_table - as_ul There you'll find templates for html output. - Dmitry On Monday, September 14, 2015 at 1:07:45 AM UTC+3, Mike wrote: > > Hi, > I have TextField in model. > story = models.TextField() >

Re: django 1.8 , makemigrations throwing errors

2015-09-14 Thread ernando
Hey John, Agree with James. makemigrations command doesn't create models.py file - it's on your plate. But after creating models.py file and filling it with your models - you have to create migration file with makemigrations command and run migrate one to create all required tables, fk, etc.

Django distributed memcached handling when server in cluster goes offline

2015-09-14 Thread LiteWait
I've got Django/memcached running in a 4 web server configuration on AWS. In settings.py each web server has (of course) a list of all the IPs participating in the memcached cluster. What I am noticing is when a server goes offline, all requests slow to a complete crawl presumably because

Re: migration error "geo_db_type" when using postgres as second database for geodjango

2015-09-14 Thread Tim Graham
This is a bug that will be fixed in Django 1.9. https://github.com/django/django/commit/0cc059cd104cdb70340bd08e597d403d80dc42a6 On Monday, September 14, 2015 at 7:35:15 AM UTC-4, Wenyao Xue wrote: > > I upgraded my router using allow_migrate, but it didn't solve my problem > > 在 2015年9月14日星期一

Re: App tables are created in db_1 but requests are routed to db_2.

2015-09-14 Thread Larry Martell
On Mon, Sep 14, 2015 at 6:58 AM, Alan Kavanagh wrote: > I'm not sure why the tables are created in the other database. Can anyone > offer insight how I could solve this issue? We would need more info to know. What does your settings file look like. How were the tables created?

Re: real time notification system

2015-09-14 Thread Jani Tiainen
There are several ways to do that but something like Twisted and Websockets or NodeJS and Websockets could do the trick. There also exists swampdragon project that is supposed to have all the goodies in easy to use format. On 14.09.2015 14:20, shamila ali wrote: How can implement real time

Re: migration error "geo_db_type" when using postgres as second database for geodjango

2015-09-14 Thread Wenyao Xue
I upgraded my router using allow_migrate, but it didn't solve my problem 在 2015年9月14日星期一 UTC+8下午6:37:56,Jani Tiainen写道: > > I guess you need to write a bit more: > > https://docs.djangoproject.com/en/1.8/topics/db/multi-db/#allow_migrate > > And sync_db is deprecated... > > On 14.09.2015 13:07,

real time notification system

2015-09-14 Thread shamila ali
How can implement real time notification system in django project.I need a notification system like facebook. -- 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

App tables are created in db_1 but requests are routed to db_2.

2015-09-14 Thread Alan Kavanagh
I'm not sure why the tables are created in the other database. Can anyone offer insight how I could solve this issue? -- 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

Re: migration error "geo_db_type" when using postgres as second database for geodjango

2015-09-14 Thread Jani Tiainen
I guess you need to write a bit more: https://docs.djangoproject.com/en/1.8/topics/db/multi-db/#allow_migrate And sync_db is deprecated... On 14.09.2015 13:07, Wenyao Xue wrote: Following is my router for world app. No router for other two apps, since default database is used Settings:

Re: migration error "geo_db_type" when using postgres as second database for geodjango

2015-09-14 Thread Wenyao Xue
Following is my router for world app. No router for other two apps, since default database is used Settings: DATABASE_ROUTERS = ['world.routers.GisRouter'] router.py in world app: class GisRouter(object): """ A router to control all database operations on models in the auth

Re: migration error "geo_db_type" when using postgres as second database for geodjango

2015-09-14 Thread Jani Tiainen
On 14.09.2015 11:58, Wenyao Xue wrote: Hi, I use mysql as default database and postgres for geodjango related appliction. my settings: DATABASE_ROUTERS = ['world.routers.GisRouter', 'rest_shop.routers.ShopRouter', 'rest_client.routers.ClientRouter']

migration error "geo_db_type" when using postgres as second database for geodjango

2015-09-14 Thread Wenyao Xue
Hi, I use mysql as default database and postgres for geodjango related appliction. my settings: DATABASE_ROUTERS = ['world.routers.GisRouter', 'rest_shop.routers.ShopRouter', 'rest_client.routers.ClientRouter'] DATABASES = { 'default': {

http://stackoverflow.com/questions/32549006/how-to-automatically-save-the-headline-for-every-new-article-provided-my-3rd-par

2015-09-14 Thread n00b
http://stackoverflow.com/questions/32549006/how-to-automatically-save-the-headline-for-every-new-article-provided-my-3rd-par -- 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