Re: Connecting Sql server to Django

2018-10-15 Thread Rakhee Menon
> Hey Vineeth, > > The last link which you gave worked like a pro..Thanks a lot for > it...Could you please help me out with one more issue... > As all my tables have been created in my old project I just want to access those tables using Django so without creating models how to access

Re: Connecting Sql server to Django

2018-10-15 Thread Rakhee Menon
Hey!VineethThanks a lot...It worked... -- 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 group, send

Re: Connecting Sql server to Django

2018-10-14 Thread Pradeep Singh
thanks ..@mateusz now its working On Mon, 15 Oct 2018 at 07:20, sum abiut wrote: > You can try sqlalchemy > https://docs.sqlalchemy.org/en/latest/dialects/mssql.html#module-sqlalchemy.dialects.mssql.pymssql > > > using the pymssql driver, you can do something like this > > from sqlalchemy

Re: Connecting Sql server to Django

2018-10-14 Thread sum abiut
You can try sqlalchemy https://docs.sqlalchemy.org/en/latest/dialects/mssql.html#module-sqlalchemy.dialects.mssql.pymssql using the pymssql driver, you can do something like this from sqlalchemy import create_engine def connect(request):

Re: Connecting Sql server to Django

2018-10-14 Thread Gurmeet Kaur
Can you please share your settings.py file and requirements.txt? On Sun, Oct 14, 2018, 12:51 PM Pradeep Singh wrote: > please help me why i am getting no change detected > > On Sat, 13 Oct 2018 at 01:33, Gurmeet Kaur > wrote: > >> I did it in my project. Use pyodbc to connect to sql server and

Re: Connecting Sql server to Django

2018-10-14 Thread Mateusz
Do you remember to save your work, as Atom does not auto-save by default? I can see the blue dot near the filename on the screenshot, indicating changes in the file that were not saved. Check if testapp/apps.py contains config class with a name variable. Something similar to the code below:

Re: Connecting Sql server to Django

2018-10-14 Thread Pradeep Singh
no effect after capitilazation On Sun, 14 Oct 2018 at 22:48, Mateusz wrote: > Line 2: models.Model (capitalize class name) > > W dniu niedziela, 14 października 2018 19:09:47 UTC+2 użytkownik Pradeep > Singh napisał: >> >> >> >> On Sun, 14 Oct 2018 at 22:37, Pradeep Singh wrote: >> >>> yes ..i

Re: Connecting Sql server to Django

2018-10-14 Thread Mateusz
Line 2: models.Model (capitalize class name) W dniu niedziela, 14 października 2018 19:09:47 UTC+2 użytkownik Pradeep Singh napisał: > > > > On Sun, 14 Oct 2018 at 22:37, Pradeep Singh > wrote: > >> yes ..i have put the app name in setting.py .wait i will share all screen >> shot >> >> On Sun,

Re: Connecting Sql server to Django

2018-10-14 Thread Pradeep Singh
yes ..i have put the app name in setting.py .wait i will share all screen shot On Sun, 14 Oct 2018 at 22:34, vineeth sagar wrote: > Okay Did you put the app in installed_apps in settings.py of your project? > Also you are saying you're new to django why would you want to use a ms-sql > server

Re: Connecting Sql server to Django

2018-10-14 Thread vineeth sagar
Okay Did you put the app in installed_apps in settings.py of your project? Also you are saying you're new to django why would you want to use a ms-sql server as the DB of you're choice? Not something as Postgres or mySQL which have good docs in the Django documentation. I think the above fix

Re: Connecting Sql server to Django

2018-10-14 Thread Pradeep Singh
i am newbie in the django.. On Sun, 14 Oct 2018 at 22:21, Pradeep Singh wrote: > please help me why i am getting no change detected > > On Sat, 13 Oct 2018 at 01:33, Gurmeet Kaur > wrote: > >> I did it in my project. Use pyodbc to connect to sql server and i am >> using django 2.0.8 >> >> On

Re: Connecting Sql server to Django

2018-10-12 Thread Gurmeet Kaur
I did it in my project. Use pyodbc to connect to sql server and i am using django 2.0.8 On Fri, Oct 12, 2018, 11:04 AM Pradeep Singh wrote: > bro...will you help me ... > i am getting django 404 error ...please tell how to fix it... > i am using python 3.6 + django 1.11 > > On Fri, 12 Oct 2018

Re: Connecting Sql server to Django

2018-10-12 Thread Pradeep Singh
bro...will you help me ... i am getting django 404 error ...please tell how to fix it... i am using python 3.6 + django 1.11 On Fri, 12 Oct 2018 at 19:35, vineeth sagar wrote: > I don't know if it works for 1.8, you would've tested it by now. The link > I haven given is a current method to

Re: Connecting Sql server to Django

2018-10-12 Thread vineeth sagar
I don't know if it works for 1.8, you would've tested it by now. The link I haven given is a current method to connect with sql server with newer versions of django, also I think it's about time your company updated your django version. For 2.1 the link I have given works seemlessly. On Oct 12,

Re: Connecting Sql server to Django

2018-10-12 Thread Jason
well, considering that 1.8 is no longer supported, you're not getting any backports and updates. which if you're doing a production level app, is pretty bad. Unfortunately, seems if you want to use the recent LTS or newer versions, SQL server is not an option unless you're willing to update

Re: Connecting Sql server to Django

2018-10-12 Thread Rakhee Menon
Hi Vineeth, Just had to make some changes in an old project which uses Sql Server 2014 and yeah I am using django 1.8. Is it that for the link you have given should I use Django 2.1 version or 1.8would work??? Thanks Rakhee -- You received this message because you are subscribed to the

Re: Connecting Sql server to Django

2018-10-11 Thread vineeth sagar
Which version of django are you using, django-mssql only supports Django until 1.8 and it's not under active development. https://pypi.org/project/django-pyodbc-azure/ use this instead, this works with ms-sql as I use this at work and if you go to the bitbucket repo you'll find the same thing I

Connecting Sql server to Django

2018-10-11 Thread Rakhee Menon
Hi Everyone, In my project I want to connect SQL Server 2014 with django, I tried with the given link, https://django-mssql.readthedocs.io/en/latest/quickstart.html but it shows some error like, import pythoncom ImportError: No module named 'pythoncom''