Re: help

2019-07-04 Thread mail2pramo
How to deploy my django project into the web server. On Jul 4, 2019 10:28 PM, "Joe Reitman" wrote: > I would suggest not using locals(). You only have three variables to pass > through to your template. > > > > On Wednesday, July 3, 2019 at 6:26:22 PM UTC-5, Tosin Ayoola wrote: >> >> Good day

Re: help

2019-07-04 Thread Tosin Ayoola
Thanks it was helpful learned about django-filter, But i just want it simple as in , i already have the list of categories displaying, i just need something that when the customer click on a particular category name the customer will get redirected to another page with all the list of products unde

Re: Connecting to SQL Server

2019-07-04 Thread Adnan Sadzak
Hi John, You are probably passing datefirst as string while in your database datefirst column is int. Can you please confirm you are not passing different data types? Cheers, Adnan On Thursday, July 4, 2019 at 6:48:21 PM UTC+2, John Burke wrote: > > I don't actually supply the hour. This is co

Re: access league by league-code REST api

2019-07-04 Thread Serdar Emirci
/League > /League Serdar EMIRCI omar ahmed , 5 Tem 2019 Cum, 00:43 tarihinde şunu yazdı: > hiii .. > i use REST api to get data from "https://www.football-data.org"; .. > i want to create one view that can restore any league (by league code > like: PL for premier league) not for particular le

Re: Deploying a static website

2019-07-04 Thread Николай Ветров
Django Dojo, Find a cheap and convenient way, then write what you choose. I am looking only for local development within the company. I already have a server and I want to set up a deployment on it. четверг, 4 июля 2019 г., 4:47:15 UTC+3 пользователь Django Dojo написал: > > I’ve created a st

Aide

2019-07-04 Thread Djamiyou CHITOU
Salut tous svp! j'aimerais associé mongoDB a django que faire? -- 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

access league by league-code REST api

2019-07-04 Thread omar ahmed
hiii .. i use REST api to get data from "https://www.football-data.org"; .. i want to create one view that can restore any league (by league code like: PL for premier league) not for particular league openleague.html {% block content %} Premier League Spanish League Italian League German League F

send league code in REST api

2019-07-04 Thread omar ahmed
hiii .. i use REST api to get data from "https://www.football-data.org"; .. i want to create one view that can restore any league (by league code like: PL for premier league) not for particular league openleague.html {% block content %} Premier League Spanish League Italian League German League F

Re: Deploying a static website

2019-07-04 Thread omar ahmed
Heroku is very helpful and easy to deploy on it https://medium.com/@BennettGarner/deploying-django-to-heroku-procfile-static-root-other-pitfalls-e7ab8b2ba33b this is very good tutorial to deploy to heroku ... i deployed my first Django app by it good luck On Thursday, July 4, 2019 at 3:47:15 AM

get_absolute_url() necessary with ModelForm ?

2019-07-04 Thread Axel Rau
I’m using a model in 2 apps with different urls. Subclasing it and overwriting get_absolute_url() did not work, because it mangled dbtable. UpdateView does not work with ModelForm w/o get_absolute_url(). Does there any workaround exist? Thanks, Axel --- PGP-Key: CDE74120 ☀ computing @ chaos cla

Re: Deploying a static website

2019-07-04 Thread Krishna Tulsyan
if your website only contains HTML/CSS (basically static website) files then a much simple solution would be to deploy the website on github. refer to this, https://pages.github.com/ for further details On Thu, Jul 4, 2019 at 9:44 PM Joe Reitman wrote: > Just to clarify static vs dynamic > > Th

Re: help

2019-07-04 Thread Joe Reitman
I would suggest not using locals(). You only have three variables to pass through to your template. On Wednesday, July 3, 2019 at 6:26:22 PM UTC-5, Tosin Ayoola wrote: > > Good day guyz > sorry i'm working on a django e-commerce project which i am new to, and > i'm stuck, i wan have a page th

Re: Connecting to SQL Server

2019-07-04 Thread John Burke
For this particular instance, I don't need the port number. On Thu, Jul 4, 2019 at 11:47 AM Joe Reitman wrote: > Don't you need to assign a port number? > > On Wednesday, July 3, 2019 at 6:52:35 PM UTC-5, John Burke wrote: >> >> Trying to connect to SQL Server from Django >> >> DATABASES = { >>

Re: Connecting to SQL Server

2019-07-04 Thread John Burke
I don't actually supply the hour. This is code in base.py. The prior code sets up formatting: datefirst = options.get('datefirst', 7) cursor.execute('SET DATEFORMAT ymd; SET DATEFIRST %s' % datefirst) I wonder if it is not getting executed successfully. On Thu, Jul 4, 2019 at 11:10 AM Charlot

Re: Deploying a static website

2019-07-04 Thread Joe Reitman
Just to clarify static vs dynamic There are basically two main types of *website* - *static* and *dynamic*. A *static site* is one that is usually written in plain HTML and what is in the code of the page is what is displayed to the user. A *dynamic site* is one that is written using a server-

Re: Connecting to SQL Server

2019-07-04 Thread Joe Reitman
Don't you need to assign a port number? On Wednesday, July 3, 2019 at 6:52:35 PM UTC-5, John Burke wrote: > > Trying to connect to SQL Server from Django > > DATABASES = { > 'default': { > 'ENGINE': 'sql_server.pyodbc', > 'NAME': 'dbname', > 'HOST': 'hostname', >

Re: Connecting to SQL Server

2019-07-04 Thread Charlotte Wood
It looks as if you have an odd value in there for the hour. Do you? Charlotte Wood, MEd Educator (405) 578-5701 Zoom Meeting ID#: 4055785701 *Zoom URL:* https://epiccharterschools.zoom.us/j/2970513912 Classroom Google Site: https://sites.google.com/epiccharterschools.org/charlottewoodclassr

Re: Portfolio website launch

2019-07-04 Thread SuryaKumar K
Hi, I would suggest you to go with Pythonanywhere or Hostinger. Pythonanywhere will be easy for setting up Django application at low cost. Thanks On Thu, Jul 4, 2019 at 5:45 PM Django Dojo wrote: > I built a portfolio website for my business using Django and wanted the > best way to host it

Portfolio website launch

2019-07-04 Thread Django Dojo
I built a portfolio website for my business using Django and wanted the best way to host it on the web. -- 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-u

Crm packages

2019-07-04 Thread Django Dojo
Hello, Are there any crm packages for Django? Thanks -- 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

Re: order of loading css-files

2019-07-04 Thread Andréas Kühne
Hi, First of all - if you have 404's you won't load your files in any way - you need to resolve that. Second the loading of the CSS files doesn't actually matter - it's the order in which they are in the file that they are added to the DOM. So if you first have bootstrap and then your own CSS yo

Re: ImportError: cannot import name 'RemovedInDjango40Warning'

2019-07-04 Thread Andréas Kühne
Hi Dave, This is the django users mailing list - not the django dev. I think you would get better help in the django dev mailing list. Also - are you sure you want to work on developing django, and not just use django? Regards, Andréas Den ons 3 juli 2019 kl 16:20 skrev Dave Ladeji : > Pleas

Re: Doubt about Custom User Model

2019-07-04 Thread Jani Tiainen
Hi Models always do belong to app. All apps do have AppConfig (one or more) So when adding app (and thus models) to INSTALLED_APPS you need to point to which AppConfig you use (defined in apps.py) to 4. heinäk. 2019 klo 11.58 pastrufazio kirjoitti: > Hi! > > I've read some examples about cust

Doubt about Custom User Model

2019-07-04 Thread pastrufazio
Hi! I've read some examples about custom User Model. In all of them, it's suggested implement the class AbtractUser (in this case the app is called *users*) For instance, in this example https://wsvincent.com/django-custom-user-model-tutorial/ they do users/models.pyfrom django.contrib.auth