Re: RUNSERVER SERIOUS PROBLEM! Please help me pls

2020-08-03 Thread Isaac
Send the screenshot of your wsgi.py file On Tuesday, 4 August 2020 05:47:29 UTC+1, Phan Nguyen wrote: > > > > On Tuesday, August 4, 2020 at 11:42:32 AM UTC+7, Phan Nguyen wrote: >> >> *So I was be able to work with Django very well the past weeks. But >> certainly, I manually moved a 'src' folde

Re: RUNSERVER SERIOUS PROBLEM! Please help me pls

2020-08-03 Thread Phan Nguyen
On Tuesday, August 4, 2020 at 11:42:32 AM UTC+7, Phan Nguyen wrote: > > *So I was be able to work with Django very well the past weeks. But > certainly, I manually moved a 'src' folder(contain manage.py) which is > originally in a Dev folder, to another folder where I write all the code of > h

Using subprocess in Django to run Java (HelloWorld) file

2020-08-03 Thread Alex Wan
Was looking at this link https://www.geeksforgeeks.org/python-subprocess-module-to-execute-programs-written-in-different-languages/ and am trying to translate it into Django. Upon form submission from index.html in templates, I want to call the view function to run HelloWorld.java (in same dir

Foreign Key Issue - to_field not enabling a non pk foreign key on v3.7

2020-08-03 Thread John Pearson
Hi, I have tried a number of ways to do this but I cannot get Foreign Keys to work with non-pk values. I keep getting a int type when trying to import a charfield, 'MotorMakeName' even though this is the type of field upon which the foreign key is connected. I've included the additional ids I us

Re: How remove "__all__" from the beginnings of form error messages?

2020-08-03 Thread oba stephen
Alright, Nice to know. Cheers. On Mon, Aug 3, 2020 at 7:12 PM Christian Seberino wrote: > I figured out the problem...If you only want the "global" errors to show > up at the top of the form > then you need to use {{form.non_field_errors}} instead of {{form.errors}}. > > > -- > You received thi

Re: How remove "__all__" from the beginnings of form error messages?

2020-08-03 Thread Christian Seberino
I figured out the problem...If you only want the "global" errors to show up at the top of the form then you need to use {{form.non_field_errors}} instead of {{form.errors}}. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from t

Re: How remove "__all__" from the beginnings of form error messages?

2020-08-03 Thread Christian Seberino
oba Thanks. Here are all the files you asked for... = forms.py: = class AppointmentForm(django.forms.Form): customer = django.forms.IntegerField() year

Re: Django context to React component

2020-08-03 Thread Yemin Sajid
You're welcome. On Mon, Aug 3, 2020 at 5:54 PM jose ivan perez diaz < joseivanperezdi...@gmail.com> wrote: > Thanks for your advice > > Sent from my iPhone > > On 3/08/2020, at 4:07 AM, Yemin Sajid wrote: > >  > On idea could be serializing the context and setting as in a global `var` > in java

Re: field for html

2020-08-03 Thread neeraj garg
Try to use django *safe *filter to render this as html. On Mon, Aug 3, 2020 at 8:35 PM Kovy Jacob wrote: > Hi, is there a type of field for django data models that's for html? I > want to have youtube embed links, which is a bunch of html fo putting a > youtube video on your site. Itlooks like t

django beginner

2020-08-03 Thread jose AVOM
hi all. i am new in django i, i want to improve my skill... need for help en challenge ... thks -- 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+unsu

Re: How remove "__all__" from the beginnings of form error messages?

2020-08-03 Thread oba stephen
Hi, could you share your forms.py, your views.py and the template. On Mon, Aug 3, 2020 at 2:22 PM Christian Seberino wrote: > I created a custom form error messag like so... > > raise django.forms.ValidationError("Invalid date") > > However, when I do {{form.errors}} in a template I see thi

field for html

2020-08-03 Thread Kovy Jacob
Hi, is there a type of field for django data models that's for html? I want to have youtube embed links, which is a bunch of html fo putting a youtube video on your site. Itlooks like this: "https://www.youtube.com/embed/Rj_vssRaZlQ"; frameborder="0" allow="accelerometer; autoplay; encrypted-media;

Re: Advice please.

2020-08-03 Thread Hector Berrones
Thacks Chucky, Since I would kike fot the users to personalize their own options I think I would choose the second option, thanks a lot for the advice. On Sun, Aug 2, 2020, 11:59 PM Chucky Mada Madamombe wrote: > Hi, > > You have 2 options: > > 1. You can use choices > 2. You can store data in a

Re: load static in css file

2020-08-03 Thread Obodoma Uzondu Vincent
Hello your have to follow the direction where you stored your file . Generally, in Django you create a static folder then maybe an image files where you store the images. You should link the image this way src= "{% static 'images/imag.png' %}" On Mon, 3 Aug 2020, 10:06 Yemin Sajid, wrote: > This

How remove "__all__" from the beginnings of form error messages?

2020-08-03 Thread Christian Seberino
I created a custom form error messag like so... raise django.forms.ValidationError("Invalid date") However, when I do {{form.errors}} in a template I see this __all__ - Invalid date - - - How remove that "__all__" part at beginning? - -- You received this

Re: Django context to React component

2020-08-03 Thread jose ivan perez diaz
Thanks for your advice Sent from my iPhone > On 3/08/2020, at 4:07 AM, Yemin Sajid wrote: > >  > On idea could be serializing the context and setting as in a global `var` in > javascript code in the templates. Then you should be able to access those in > from React code. > But tbh, I would

Re: help on extending user model using django rest_framework

2020-08-03 Thread Yemin Sajid
I think adding *"user" *in the fields array of the *ProfileSerializer*'s Meta class should solve the issue. On Thursday, July 30, 2020 at 5:22:06 PM UTC+6 tosina...@gmail.com wrote: > i have it defined in another app, but i've gotten it attached below > > On Thu, Jul 30, 2020 at 11:50 AM 'Amit

Re: load static in css file

2020-08-03 Thread Yemin Sajid
This may not work as intended if the CSS files are not rendered using the Django template engine. You have to put the style declaration where you'd need the image in the ** tag in your template code. From there you can use the *{% static “images/imag.png” %}* syntax. On Friday, July 31, 2020 at

Re: Django context to React component

2020-08-03 Thread Yemin Sajid
On idea could be serializing the context and setting as in a global `var` in javascript code in the templates. Then you should be able to access those in from React code. But tbh, I would not recommend that. This type of integration may create unnecessary complexities. Better to work with the A

Django bugfix releases issued: 3.0.9 and 2.2.15

2020-08-03 Thread Mariusz Felisiak
Details are available on the Django project weblog: https://www.djangoproject.com/weblog/2020/aug/03/django-bugfix-releases-309-2215/ -- 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