Create models using raw SQL queries

2019-03-26 Thread cameron hochbrg
hello, for a project for a database class, we wanted to create a web app using django. However, our teacher wants us to use raw SQL queries for everything involving the database. As such I was wondering if it was possible to create mdoels using raw SQL queries. thank you in advance -- You

Re: Create project in windows, but run it in Ubuntu

2019-03-26 Thread Mario R. Osorio
I'm sure you won't regret it. Dtb/Gby === Mario R. Osorio *Just Choose Python!* *SQL programmers don't die, they just ROLLBACK the TRANSACTION.* On Tue, Mar 26, 2019 at 3:04 PM Chafid Ahmad wrote: > Thanks everyone for the

Re: Create project in windows, but run it in Ubuntu

2019-03-26 Thread Chafid Ahmad
Thanks everyone for the suggestions. I ended up using the 3rd solution: making my laptop dual boot, Ubuntu and windows Cheers On Tue, Mar 26, 2019, 20:34 Mario R. Osorio wrote: > Of course you can however, IMHO; it is better to use whatever is closest > to the real McCoy. Two options I can

Re: How can I display the result of a query in the template ?

2019-03-26 Thread Suresh Kannan
Hi, These video tutorials may help you https://www.youtube.com/watch?v=VZ8NIoLN-yQ https://www.youtube.com/watch?v=08Oulp3OpJA On Tue, 26 Mar 2019 at 12:33, Nadhem Zmandar wrote: > I am working on a project using Django and AngularJS. I have executed a > query on the python shell. I would

How can I display the result of a query in the template ?

2019-03-26 Thread Nadhem Zmandar
I am working on a project using Django and AngularJS. I have executed a query on the python shell. I would like to show the result on the front using AngularJS and make it a dynamic query using the "id" . -- You received this message because you are subscribed to the Google Groups "Django

Re: Create project in windows, but run it in Ubuntu

2019-03-26 Thread Eduardo Cervantes
I developed my django site on windows 10 and published to a ubuntu box without issues. Using github or other repository is straightforward and a good idea. The only thing you need to change is your settings/config since one is dev and the other will be production but you would have that issue

Re: Crispy: Helper Layout has no effect on form.

2019-03-26 Thread mohamed khaled
Are you add in setiings.py file installed_apps = [ . 'crispy_forms', ] CRISPY_TEMPLATE_PACK = 'bootstrap4' then add this in page template you want to render {% load crispy_forms_tags %} On Wednesday, 20 March 2019 17:32:31 UTC+2, Mohammad Etemaddar wrote: > > Here is my model form

Re: Create project in windows, but run it in Ubuntu

2019-03-26 Thread Mario R. Osorio
Of course you can however, IMHO; it is better to use whatever is closest to the real McCoy. Two options I can think of are: 1) Use Docker images. It is not very hard to work with Docker images however, it does add a bit of difficulty to your workload. 2) Use a Linux image in VirtualBox. It

Re: Crispy: Helper Layout has no effect on form.

2019-03-26 Thread Mohammad Etemaddar
Found the answer. I used crispy like this: {{ form|crispy }} *But We should use like this to get form helper effect:* {% crispy form %} On Wednesday, March 20, 2019 at 7:02:31 PM UTC+3:30, Mohammad Etemaddar wrote: > Here is my model form which is rendered by crispy. > When I change the

Re: django cms beginner app issue

2019-03-26 Thread Keegen Knapp
so I'm missing a line of code in my models.py? On Tuesday, March 26, 2019 at 7:09:59 AM UTC-5, Avraham Serour wrote: > > you model doesn't have app_config > > On Tue, Mar 26, 2019 at 1:07 AM Keegen Knapp > wrote: > >> I'm trying to write a custom app where you can add new plants in the >>

Re: How can I create schemas while writing creating table models.

2019-03-26 Thread jgibson
Hi Sushen, https://www.amvtek.com/blog/posts/2014/Jun/13/accessing-multiple-postgres-schemas-from-django/ This seems to be a rare use case, but that link has some options. Good Luck! On Friday, March 22, 2019 at 8:58:20 PM UTC-4, Sushen Jamwal wrote: > > Hi all, > > I am finding it

Re: django cms beginner app issue

2019-03-26 Thread Avraham Serour
you model doesn't have app_config On Tue, Mar 26, 2019 at 1:07 AM Keegen Knapp wrote: > I'm trying to write a custom app where you can add new plants in the > admin. Then create a list view, category view and detailed view. You can > see my error and code below. Any help is greatly

Re: How to inherit the user model in two apps in django rest,

2019-03-26 Thread jgibson
I'm not exactly sure what is happening with your models but a few places to investigate are these: Since you are using `AbstractBaseUser` rather than `AbstractUser`: * Looking at your code it seems like you missed assigning the *`USERNAME_FIELD`* * You did not set your identifier (which I

Re: django cms beginner app issue

2019-03-26 Thread Keegen Knapp
sorry, that doesn't make sense. maybe that was meant for a different post? On Monday, March 25, 2019 at 6:58:01 PM UTC-5, LIGHTNING OMEGA 2 636 wrote: > > Just letting you know that, I've read msg and reviewed you code. Although > these are interview objects, it uses word tokens. Key words

How to inherit the user model in two apps in django rest,

2019-03-26 Thread Shubham Joshi
I want to create 2 separate signup form 1 for teacher and 1 for a student for that I created 2 apps and its respective models but it gives an error https://github.com/shubham1507/school == ERRORS: auth.User.groups: (fields.E304) Reverse accessor for 'User.groups' clashes with

Re: add Image Field in model

2019-03-26 Thread 'Amitesh Sahay' via Django users
Hello Omar,  When creating a model you need to use "ImageField" example abc = models.ImageFields() I hope thats what you are looking for. If you have any specific requirements do let me know.Sorry for the delayed response. Regards, Amitesh Sahay On Wednesday, 13 March, 2019, 5:55:15 pm

Re: Help Needed For .Error Solving

2019-03-26 Thread Manas Nikam
Where is the error at response from paytm or at your request for payment information? On Tue, Mar 26, 2019, 6:57 AM Mike Dewhirst wrote: > On 26/03/2019 4:35 am, Kumar Ashirwad Mishra wrote: > > I am trying to send a request to paytm gateway checkout api for online > > transaction so I have

Re: Translation doesn't work?

2019-03-26 Thread ANi
Oooops, it's a typo. Thanks! Gourav Sardana於 2019年3月26日星期二 UTC+8下午2時04分11秒寫道: > > Use the correct spelling in your html > Its {%trans%} > Please use this. Hope so this will fine working ! > Have a good day! > > On Tue, 26 Mar 2019, 11:29 am ANi, > > wrote: > >> Does anyone have clue about it?

Re: Django REST custom registration

2019-03-26 Thread Shubham Joshi
thanks On Tue, Mar 26, 2019 at 8:33 AM Sam W wrote: > Similar question in Stackoverflow: > > > https://stackoverflow.com/questions/24791110/django-allauth-how-to-set-user-to-active-only-after-e-mail-verification/24809190 > > On Monday, March 25, 2019 at 4:17:11 AM UTC-5, shubham joshi wrote:

Re: Web Push Notification in Django

2019-03-26 Thread Sam W
This one is very simple: https://www.pushbots.help/install-pushbots-in-your-app-or-website/web-pages/add-pushbots-to-your-web-page On Monday, March 25, 2019 at 11:28:43 AM UTC-5, Aayush Bhattarai wrote: > > *I am working on blog project and I wanted to add Web Push Notification in > Django. I

Re: Translation doesn't work?

2019-03-26 Thread Gourav Sardana
Use the correct spelling in your html Its {%trans%} Please use this. Hope so this will fine working ! Have a good day! On Tue, 26 Mar 2019, 11:29 am ANi, wrote: > Does anyone have clue about it? > I'll appreciate your help! > > ANi於 2019年3月22日星期五 UTC+8上午11時12分07秒寫道: >> >> Hello. >> The only