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):

column "" must appear in the GROUP BY clause or be used in an aggregate function

2018-10-14 Thread muin
Django 2.1.2, Postgres 10 Model: class Product(models.Model): product_id = models.AutoField("产品ID", primary_key=True) ... class SpecItem(models.Model): spec_id = models.AutoField(primary_key=True) product = models.ForeignKey(Product, on_delete=models.CASCADE, related_name="product_specs",

How express SQL query using Django ORM?

2018-10-14 Thread Artem Malyshev
Hi, I have an example application of the shop. Full application code is available at https://github.com/dry-python/tutorials/tree/master/django In this example, User can buy a subscription for different categories of the content. The user can subscribe for one day, one month or one year.

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

Free Class

2018-10-14 Thread Ing.Daniel Bojorge
#Curso #Django #Clase #Routin #Rutas #Python #PostgreSQL #Course #FREE #Class #Gratis En esta clase veremos cómo utilizar la vista login y logout predeterminada de Django Todo esto y mucho más en el curso de DJANGO. Si te ha sido de utilidad esta clase o crees que puede ayudarle a otra persona,

Re: Instagram embedding

2018-10-14 Thread Mateusz
My assumption, according to https://stackoverflow.com/questions/33295733/utf8-codec-cant-decode-byte-0xe4-invalid-continuation-byte-in-timezone is, that you use German "ä" letter somewhere. Probably your local timezone is "Mitteleuropäische Zeit" which can be displayed by Instagram somewhere

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