Re: How to create receipt forms using django.

2018-05-21 Thread subhani shaik
Hi... Iknowthe django project creations.but i need how to create receipt forms with multiple submit buttons and it's open another window automatically to other receipt.how.. please tell me know. On Mon, May 21, 2018 at 11:38 PM, Daniel Germano Travieso < danielgtravi...@gmail.com> wrote: > Hello

money field question

2018-05-21 Thread Mike Dewhirst
I have just read ... * Martin Fowler's Money base pattern (P488 to 495) https://martinfowler.com/eaaCatalog/money.html * https://github.com/poswald/python-money * https://github.com/django-money/django-money * https://github.com/limist/py-moneyed ... and I am spoiled for choice. I was going

Re: Insert data into multiple models when doing POST method

2018-05-21 Thread Daniel Germano Travieso
Hello! ​As my initial understanding, you are attempting to use some sort of Django REST Framework. Check the django-rest-framework documentation for some insights: http://www.django-rest-framework.org/api-guide/serializers/ You will need to overwrite the .create method of the Patient Model and

Re: First View

2018-05-21 Thread Daniel Germano Travieso
Hello! As you configured, the available url patterns you have on your project are: "/admin/" and "/boutique/"... And as you request states, you are trying to access the path "/".. So django didn't find any matching url pattern for that. To access the view you are intended to access, you should

Re: Temporal table in Django 1.6

2018-05-21 Thread Daniel Germano Travieso
Hello! First of all, I highly recommend you to use django* 1.8 or upper*, as de 1.6 version is* no longer supported* by the official django development. After that note, as you can see, the database engine backends that come bundled with Django are as follows (

First View

2018-05-21 Thread Tristan Demot
Hello, I use tutorial 1.11 beaumarche (startproject) from django.conf.urls import include, url from django.contrib import admin urlpatterns = [ url(r'^boutique/', include('boutique.urls')) , url(r'^admin/', admin.site.urls), ] boutique (app) urls.py from django.conf.urls import

Re: how to import functions of app from the same project from other app

2018-05-21 Thread Asif Khan
thanks yes I am doing day by day to improve python and django both. On Monday, May 21, 2018 at 11:05:56 PM UTC+5, Daniel Germano Travieso wrote: > > Hello Asif! > > To use a method from one app in another app would require you to import > the app's module (using from - import statements),

Re: how to import functions of app from the same project from other app

2018-05-21 Thread Asif Khan
thanks it is resolved. On Tuesday, May 22, 2018 at 12:18:49 AM UTC+5, Coder Dude wrote: > > Suppose your function is in accounts.models . And you want to import in > VV.views > > In views.py of VV, > Write, > from accounts.models import foo -- You received this message because you are

Re: Django

2018-05-21 Thread James Farris
Start with the Django docs tutorials https://docs.djangoproject.com/en/2.0/intro/tutorial01/ On Mon, May 21, 2018 at 12:20 PM chaitanya goud wrote: > Google "full stack python " > > On 22-May-2018 12:49 am, "Shivprasad Khandapure" < > shivkhandapure...@gmail.com>

Re: Django

2018-05-21 Thread chaitanya goud
Google "full stack python " On 22-May-2018 12:49 am, "Shivprasad Khandapure" < shivkhandapure...@gmail.com> wrote: Hii everyone I'm interested to learn django framework. I'm new in python and django so give some important important ideas, details about django and its basics. How can i

Insert data into multiple models when doing POST method

2018-05-21 Thread thiagarajan.kpt
Hi, I have two models (Patients and PatientAddress). I want to create a new patient using POST method and data should be inserted in Patient and PatientAddress tables. But the data is inserted only into Patients table and not in PatientAddress table. When I POST a new patient with Address

how to import functions of app from the same project from other app

2018-05-21 Thread Coder Dude
Suppose your function is in accounts.models . And you want to import in VV.views In views.py of VV, Write, from accounts.models import foo -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails

Django

2018-05-21 Thread Shivprasad Khandapure
Hii everyone I'm interested to learn django framework. I'm new in python and django so give some important important ideas, details about django and its basics. How can i work with django and its python libraries and its templates. Thank you..! -- You received this message because

Temporal table in Django 1.6

2018-05-21 Thread Nirali Supe
Hello, I need to create Temporal table in Django 1.6 Does Django support Temporal table model? I unable to find the Django documentation on it. Can someone please point me to the documentation? Thank you, Nirali Supe -- You received this message because you are subscribed to the Google

Re: How to create receipt forms using django.

2018-05-21 Thread Daniel Germano Travieso
Hello Dwelve into the official Django Tutorial and learn it's basic, then go on to trying to create the app you want! https://docs.djangoproject.com/en/2.0/intro/tutorial01/ Hope it helps. On Monday, May 21, 2018 at 4:20:37 AM UTC-3, subhani shaik wrote: > > Hi group numbers... > > How to

Re: how to import functions of app from the same project from other app

2018-05-21 Thread Daniel Germano Travieso
Hello Asif! To use a method from one app in another app would require you to import the app's module (using from - import statements), allowing the interpreter to know that the function from one scope is available on another. In a serious note, I recommend that you first familiarize yourself

Re: Django login() function works in production but not in development

2018-05-21 Thread pieceofkayk2718
I should elaborate even further.. The 'do something' does not show, instead the 'do something else' shows. -- 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

how to import functions of app from the same project from other app

2018-05-21 Thread Asif Khan
I am trying to import function wrote in one of app in a project to import that function in other app in same project. like I have one project and two apps. Project1 Project1 accounts app (function written in this app) VV app (wants to utilize in this app) I am

Re: Django login() function works in production but not in development

2018-05-21 Thread pieceofkayk2718
Thanks, I probably should elaborate on that. I determine the user does not get logged in through the logic of my template language. I have {% if user.is_authenticated %} do something {% else %} do something else {% endif %} where user is passed through the context dictionary of my

RE: f-strings with self.stdout management commands

2018-05-21 Thread Matthew Pava
Nevermind… I was using self.stdout(f’’) Instead of self.stdout.write(f’’) Go figure… From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of Matthew Pava Sent: Monday, May 21, 2018 9:21 AM To: django-users@googlegroups.com Subject: f-strings with self.stdout

f-strings with self.stdout management commands

2018-05-21 Thread Matthew Pava
I was using Python 3's f-strings with self.stdout in a BaseCommand. I keep getting this exception: TypeError: 'OutputWrapper' object is not callable Any ideas? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and

Re: How do you deal with two third party apps with the same App label?

2018-05-21 Thread Mario R. Osorio
Thanks Daniel, I've read that material but could make much sense out of it (I'm sure its me) I did read it again today and I *think* I've got it. Will check it tonight and I'll let you know. Thanks again On Saturday, May 19, 2018 at 10:45:17 PM UTC-4, Daniel Germano Travieso wrote: > >

Re: django 2.0 tutorial :: exception:: application labels are not unique.

2018-05-21 Thread Melvyn Sopacua
On woensdag 16 mei 2018 14:00:28 CEST Paolo Chilosi wrote: > just a note on your note: I created a few more new project/app using > PyCharm create facility and I found the app registered in the > INSTALLED_APPS settings. I do not know if it is Django or PyCharm that > introduce this setting.

Re: Setting up Django templates

2018-05-21 Thread Daniel Roseman
On Sunday, 20 May 2018 15:31:08 UTC+1, Salty beggar wrote: > > Hi, I'm trying to set up Templates for Django. I already have models and > views that function, and now I'm trying to figure out a way to get an > actual page to show for it. > > > > The views return JSON-formatted

How to create receipt forms using django.

2018-05-21 Thread subhani shaik
Hi group numbers... How to create supermarket receipt forms using django& python with the help of HTML.please give me that code.plz.. Thanks. subhani shaik -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group