Re: pyodbc in umbutu 19.10

2020-02-18 Thread Jorge Gimeno
On Tue, Feb 18, 2020, 11:55 AM Elias Coutinho wrote: > This is my return: > > > elias@eliasPai:~$ sudo apt install unixodbc-dev > Lendo listas de pacotes... Pronto > Construindo árvore de dependências > Lendo informação de estado... Pronto > Alguns pacotes não puderam ser instalados. Isto pode

Re: How to store a boolean expression (parse tree) in a model?

2020-02-18 Thread Simon Charette
I suggest you have a look at the "Trees and Graph" section of the Django Packages website[0]. I've personally used MPTT and Treebeard in the past without too much trouble. You could also a field able to store composite data structures such as JSONField or even a dedicated PostgreSQL type[1] to

How to store a boolean expression (parse tree) in a model?

2020-02-18 Thread test
Let's say I have: Calculator #1: Expression: (True AND False) AND (True OR False) This expression should be a child of some calculator. class Calculator(models.Model): name = ... class Expression(models.Model): parent = models.ForeignKey(Calculator) boolean = AND or OR sub_exp1 =

Re: How to pass pk through URL to CreateView

2020-02-18 Thread Sam Hefer
Hi Phil, I did find a solution to my query. Have a look at my post on stackoverflow: https://stackoverflow.com/a/60273100/7063031 Thanks, Sam > On 19/02/2020, at 3:21 AM, Phil Kauffman wrote: > >  > Hello, > > Did you get any headway on this issue? I'm a novice Django user but was >

Re: pyodbc in umbutu 19.10

2020-02-18 Thread Elias Coutinho
This is my return: elias@eliasPai:~$ sudo apt install unixodbc-dev Lendo listas de pacotes... Pronto Construindo árvore de dependências Lendo informação de estado... Pronto Alguns pacotes não puderam ser instalados. Isto pode significar que você solicitou uma situação impossível ou, se você está

Re: How to pass pk through URL to CreateView

2020-02-18 Thread Farai M
It should work two issue 1.Url is not matching your need to visit that is where you are getting that reverse error. 2.To pull that value through kwargs you need to use the get request so override the get method otherwise it should work fine. On Sat, Feb 15, 2020, 5:19 AM Sam Hefer wrote: > Hi,

Re: pyodbc in umbutu 19.10

2020-02-18 Thread Jorge Gimeno
There may be development libraries missing. An internet search found this: sudo apt install unixodbc-dev Hope it helps! -Jorge On Tue, Feb 18, 2020, 10:49 AM Elias Coutinho wrote: > Good afternoon people. > > > Out of curiosity I installed SQL Server on Linux. > > > I restored a database

pyodbc in umbutu 19.10

2020-02-18 Thread Elias Coutinho
Good afternoon people. Out of curiosity I installed SQL Server on Linux. I restored a database and made basic commands. Working properly! I have a connection I made to a .py file to make queries and run stored procedures. It also works on windows. As I wanted to have a SQL Server SGDB

Whatsap group for best practices

2020-02-18 Thread Infinity Programmer
Join expert's Python developer whatsapp group Follow this link to join my WhatsApp group: https://chat.whatsapp.com/HHN5GoV27mM4TXKcqPf0ES Follow this link to join my WhatsApp group: https://chat.whatsapp.com/HHN5GoV27mM4TXKcqPf0ES Follow this link to join my WhatsApp group:

Re: Model uniqueness constraint with date extraction

2020-02-18 Thread Simon Charette
Hello Thierry, Django doesn't support support constraints on lookups/expressions but there's ungoing work to do so[0]. In the mean time you'll have to rely on a `RunSQL` operation in your migrations to create the constraint. Cheers, Simon [0] https://code.djangoproject.com/ticket/30916 Le

Re: Study and project partner(s) needed

2020-02-18 Thread Eduardo Cervantes
I joined a few people on Reddit and met up on a discord server. I liked it so much that I started my own discord server and started to invite friends. Good place to share screens and voice chat. Cheers, Eduardo https://eddyizm.github.io/resume/ 714.900.3339 On Fri, Feb 14, 2020, 10:29

Model uniqueness constraint with date extraction

2020-02-18 Thread Thierry Backes
Hey, I have a model which has a date and a foreign key field. I want a uniqueness constraint that each fk can only be used once per month, so Unique(date__year, date__month, fk). However, when I use this in my model’s metadata: models.UniqueConstraint(fields=['date__year', 'date__month',

Re: How to pass pk through URL to CreateView

2020-02-18 Thread Phil Kauffman
Hello, Did you get any headway on this issue? I'm a novice Django user but was thinking of doing something similar with my code for a project I'm working on. I'm struggling with reverse lookup on foreign key. Have you had any issues doing reverse lookup on FK? For example in a view if you

Re: Django Channels inifnate group expair time or any alternative solution

2020-02-18 Thread Integr@te System
Hi Naveen, Plz look at autobahn lib for all your purpose: https://crossbar.io/autobahn/ On Tue, Feb 18, 2020, 12:16 pot-potato wrote: > Dear Django-Team, > > I trying to create an IoT application with Django Channels, this is my plan > >- I have is a python program that can fetch data

Re: Study and project partner(s) needed

2020-02-18 Thread maninder singh Kumar
Medium to average programming skills looking to improve [image: --] Maninder Kumar [image: http://]about.me/maninder.s.kumar On Tue, Feb 18, 2020 at 3:43 AM Maqdum Adewale wrote: > Hi I'm in > > On Fri, Feb 14, 2020, 5:15 PM Akorede

Re: Runserver with a custom script

2020-02-18 Thread Mike Dewhirst
On 18/02/2020 6:16 pm, Soumen Khatua wrote: Hi Folks, I want to run a script or url  at the time of django server loading.So Does this possible,If yes could you tell me,How? If the code in your script returns immediately (ie is non-blocking) then add something like this to the end of it