Re: Form fill out and review

2019-08-15 Thread Derek
This can be achieved using available Django functionality (views and forms). Its not really a project but can certainly be part of one. On Thursday, 15 August 2019 16:25:52 UTC+2, Django Dojo wrote: > > I’m trying to find out if there’s any Django packages for this type of > project? > > On Thu

Re: Cómo se pronuncia Convert date field to value 1

2019-08-15 Thread Gil Obradors
Hi! For mi, You need 2 models: -users -attention Users save the persons Atention save one attend event Atention, will have : -date datefield, user foreignkey(users) Then you can do query sets like, how many attentions has Pepito. How many attentions has Pepito this mounth, last days... this

Re: Channels: launching a custom co-routine from SyncConsumer

2019-08-15 Thread Andrew Godwin
SyncConsumer isn't async - it runs inside a separate synchronous thread. You'll need to get the event loop from the other thread and use call_soon_threadsafe instead! Andrew On Wed, Aug 14, 2019 at 6:59 PM Dan Merillat wrote: > > I have an application that's 99% using the ORM and database work

Cómo se pronuncia Convert date field to value 1

2019-08-15 Thread Harold A
Hello everyone, I am a beginner in Django. I would like you to guide me on how to solve the next problem I have. In my application I have fields from date01 = models.DataFiled(blank = True, null = True) *to* date31 = models.DataFiled(blank = True, null = True), This to know the number of da

Re: Exception value name is not defined

2019-08-15 Thread N'BE SORO
https://github.com/Soro08/django_help/blob/master/README.md Le jeu. 15 août 2019 à 22:54, N'BE SORO a écrit : > This is normal in the view.py file is what appears. Now if you want to use > the data in the template You must use a loop to browse the items. I will > send you a Github link or I will

Re: Exception value name is not defined

2019-08-15 Thread N'BE SORO
This is normal in the view.py file is what appears. Now if you want to use the data in the template You must use a loop to browse the items. I will send you a Github link or I will better explain. Le jeu. 15 août 2019 à 20:49, Kean a écrit : > > Hi, pls see the result of the code, no objects, ju

Re: Exception value name is not defined

2019-08-15 Thread Kean
Hi, pls see the result of the code, no objects, just the ID number, and the model name, plus query set, not sure what issue is here. On 15 Aug 2019, at 21:29, N'BE SORO wrote: > Ok. > > Use this code: > > data = Test.objects.all() > > context = { > 'data': data, > } > > > in Your

Re: Exception value name is not defined

2019-08-15 Thread N'BE SORO
I'll put an example on GitHub and send you the link Le jeu. 15 août 2019 à 20:29, N'BE SORO a écrit : > Ok. > > Use this code: > > data = Test.objects.all() > > context = { > 'data': data, > } > > > in Your template use: > > > data.name, > data.broname > ... > > > > Le jeu. 15 août 2019 à 19

Re: Exception value name is not defined

2019-08-15 Thread N'BE SORO
Ok. Use this code: data = Test.objects.all() context = { 'data': data, } in Your template use: data.name, data.broname ... Le jeu. 15 août 2019 à 19:56, Kean a écrit : > Hi, N’BE, > > The code you sent, when i apply using my model and substitute the objects > for those defined in my

Re: Exception value name is not defined

2019-08-15 Thread Kean
Hi, N’BE, The code you sent, when i apply using my model and substitute the objects for those defined in my model, in the context, the browser, throws up unidentified error for the object defined in the context, i.e. my object name. Please see example below which better explains what I am tryi

Re: Exception value name is not defined

2019-08-15 Thread N'BE SORO
Ok. Simple exemple. data_1 = Model_1.objects.all() data_2 = Model_2.objects.all() data_3 = Model_3.objects.all() data_4 = Model_4.objects.all() data_5 = Model_5.objects.all() data_6 = Model_6.objects.all() context = { 'data_1': data_1, 'data_2': data_2, 'data_3': data_3, 'data_4'

Re: Exception value name is not defined

2019-08-15 Thread Kean
Hi N’BE, If I have 6 objects in my dbase model, I would want all six to be returned to the view, via template. However, the code you sent is only returning 1 object, so i am missing 5 how can I use the view code, to ensure all 6 are returned o the template? Best, K On 15 Aug 2019, at 20:21

Re: Exception value name is not defined

2019-08-15 Thread N'BE SORO
you want to send what model on your view? Le jeu. 15 août 2019 à 19:04, Kean a écrit : > Hi N’BE, > > Thanks, the code worked, the problem is I wanted to use the context to > return all objects in the database to > the defined html view, > > However, I am still only getting the self defined str

Re: Exception value name is not defined

2019-08-15 Thread Kean
Hi N’BE, Thanks, the code worked, the problem is I wanted to use the context to return all objects in the database to the defined html view, However, I am still only getting the self defined str and returning to view, is there any way to get all records in the table to display? Best, Kea

Re: Exception value name is not defined

2019-08-15 Thread N'BE SORO
Hello Use this code def editremovebusiness(request): data = Businessownercreate.objects.all() context = { 'data': data, } return render(request, 'editremovebusiness.html', context) Le jeu. 15 août 2019 à 18:45, RONAK JAIN a écrit : > Hey Kean, > > What is the object here? > > > > > On Thu, Aug

Re: use site's templates

2019-08-15 Thread RONAK JAIN
Hey , You can use for the load your base.html {% extends "project/base.html" %} I will give some example for better understanding so, if you are trying to Extend your html file in your index.html file so, you can write simply according to me: {% load static %} {% extends 'base.html' %} {% bl

Re: Exception value name is not defined

2019-08-15 Thread RONAK JAIN
Hey Kean, What is the object here? On Thu, Aug 15, 2019 at 11:37 PM Kean wrote: > Hi, > > I have written the following code in views.py > > def editremovebusiness(request): > data = Businessownercreate.objects.all() > context = { > 'Creator': obj.Creator, > 'Micro_Small_Medium': obj.Micro_Sm

Re: use site's templates

2019-08-15 Thread dupakoor kannan
Hi, I am trying to use a Django tip from stackoverflow https://stackoverflow.com/a/946397/4037275 I have static css style sheets (static). I will use {% load static %}. Can I use this template approach in extending templates {% extends "project/base.html" %} Can you give me few other examples of

Re: nginx server to apache

2019-08-15 Thread 'Maher, Brian' via Django users
Yes, certainly! You can run Django apps under apache using mod_wsgi. There’s an example configuration here: https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/modwsgi/ Best Brian — Best Regards, Brian Maher On 15 Aug 2019, at 09:17, gopi p mailto:gopi.s...@gmail.com>> wrote: Hi,

Exception value name is not defined

2019-08-15 Thread Kean
Hi, I have written the following code in views.py def editremovebusiness(request): data = Businessownercreate.objects.all() context = { 'Creator': obj.Creator, 'Micro_Small_Medium': obj.Micro_Small_Medium, } return render(request, 'editremovebusiness.html', context={"data":data}) when I save it

Re: Form fill out and review

2019-08-15 Thread Django Dojo
I’m trying to find out if there’s any Django packages for this type of project? On Thursday, August 15, 2019, Tosin Ayoola wrote: > Ohk cool so Wat do u need help on, Wat have u done so far > > On Aug 15, 2019 12:16, "Django Dojo" wrote: > >> Hello, >> I’m new to Django and I’m looking to do t

Re: Can't run manage.py

2019-08-15 Thread RONAK JAIN
You can do uninstall and try to do it again I think. you installed the wrong version. or if you will get again error please let me know I will connect with you on TeamViewer and Zoom also. Thank On Thu, 15 Aug 2019, 18:01 chevalier, wrote: > > > On Wednesday, August 14, 2019 at 4:58:44 PM UTC

Re: Form fill out and review

2019-08-15 Thread Tosin Ayoola
Ohk cool so Wat do u need help on, Wat have u done so far On Aug 15, 2019 12:16, "Django Dojo" wrote: > Hello, > I’m new to Django and I’m looking to do the following steps: > 1. Person fills out a form > 2. Person reviews/previews the information they fill out > 3. Once it’s reviewed they can

Re: Isolate Django apps in different Docker containers

2019-08-15 Thread Ronit Mishra
Hi Guillaumae, Did you go ahead with this approach? If yes, then would you be kind enough to share your experience and maybe brief us about your process/journey? On Thursday, August 25, 2016 at 7:25:24 PM UTC+5:30, Guillaume Dupin wrote: > > Hello, > > On a Django project (which will consist o

Calling datepicker from a FormHelper - Using CrispyForms

2019-08-15 Thread chevalier
I am trying to call my JQuery datepicker from a FormHelper. I just can't find a way to send attributes to JQuery e.g "theme":"dark" etc. This is important for me because i want to define the format type also. class DeviceFilterFormHelper(FormHelper): form_id = "Device-search-form" form_metho

Re: Can't run manage.py

2019-08-15 Thread chevalier
On Wednesday, August 14, 2019 at 4:58:44 PM UTC-7, MATTHEW GODSTIME wrote: > > The error displayed is > > ' couldn't import Django I'm sure if it's install or in my python path > or if forget to activate my virtual environment' > > I have Django installed and activate my virtualenv were it wa

nginx server to apache

2019-08-15 Thread gopi p
Hi, It is possible to run instead of ngnix server to apache server -- 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.

Form fill out and review

2019-08-15 Thread Django Dojo
Hello, I’m new to Django and I’m looking to do the following steps: 1. Person fills out a form 2. Person reviews/previews the information they fill out 3. Once it’s reviewed they can post it to website -- You received this message because you are subscribed to the Google Groups "Django users" gr

Re: OT: Exceptions in production. Local variables?

2019-08-15 Thread mohammed habib
Definitely Sentry, they will show you the stack trace and a dump of local variables for every crash, as well as other useful analytics It’s pretty easy to set up If your site is not so busy they have a free plan Sent from my iPhone > On 15 Aug 2019, at 11:18, guettli wrote: > > This is a b

OT: Exceptions in production. Local variables?

2019-08-15 Thread guettli
This is a bit off-topic. If I have an exception in the production environment, then up to now I only see the ascii stacktrace in the logs. Often this is enough to fix the issue, but sometimes I would like to see the local variables, too. Which tool could help here? How do you handle this? Re

Re: Can't run manage.py

2019-08-15 Thread RONAK JAIN
Hey, You can do simply first of all remove your virtualenv path write there. rm -rf env (or whatever created name for environment..) Then , again simply create your virtual path : virtualenv -p python3 env && source env/bin/activate I think , you cando easily and if you will get any type of