Re: Migrating a code written in flask framework to django.

2021-03-12 Thread cosmos multi
I don't know of any tool that allows you to do a technology migration automatically, you have to change the code slowly yourself. El vie, 12 mar 2021 a las 13:50, GEETHANJALI S P (< geethanjalisp1...@gmail.com>) escribió: > Hi all, > Suppose a program is written in flask framework how can we

Error trying to switch between different charts

2020-12-18 Thread cosmos multi
I am developing an application which shows the data created in a chartjs graph, what I am doing it does well, since all the data is displayed in the way I want, but I have a problem and that is that now I am trying to do that according to the type of graph that a user wants, this is changed,

Re: Deploy Django Ubuntu

2020-06-19 Thread cosmos multi
https://devcenter.heroku.com/articles/django-app-configuration El vie., 19 jun. 2020, 6:10 p. m., Perceval Maturure escribió: > Mod_wsgi does it like a charm > > https://m.youtube.com/watch?v=Sa_kQheCnds > > On Fri, 19 Jun 2020 at 21:10, Julio Cojom > wrote: > >> nginx + gunicorn. >> >> >>

Re: urgent

2020-06-19 Thread cosmos multi
Is {% load static %} not {% load staticfiles %} El vie., 19 jun. 2020, 1:32 p. m., Awais Ahmad escribió: > i'm facing this problem and i can't fix it any body please help me or tell > me about this error > > -- > You received this message because you are subscribed to the Google Groups >

Re: http://localhost:8000/admin/ is not working

2020-06-16 Thread cosmos multi
This add in url? El mar., 16 jun. 2020, 1:47 a. m., Ifeanyi Chielo escribió: > Please can anyone help me resolve this issue. the > http://localhost:8000/admin/ is not working and returns an error below > > TypeError at /admin/Cannot mix str and non-str argumentsRequest Method: > GETRequest URL:

Re: How to use session in django??

2020-06-14 Thread cosmos multi
I use sessions more for what shopping carts are, saving information temporarily. El dom., 14 jun. 2020, 11:36 p. m., meera gangani escribió: > Hello , > How To use session in django > Can you please help me out! > > > Thanks in advance > -Meera Gangani > > -- > You received this message

advice on role management in django

2020-06-12 Thread cosmos multi
I am trying to work with a role system that allows from the user registry, select the role to which you want to belong, the problem is that I do not get the best way to do it because when I want to do validations it generates many errors, investigating a bit I realized that the groups are more

Re: Best Django Rest Framework Tutorial??????

2020-06-10 Thread cosmos multi
on youtube there are very good El mié., 10 jun. 2020 a las 14:40, chaitanya orakala (< chaitu.orak...@gmail.com>) escribió: > Thank you jacklin > > > On Wed, Jun 10, 2020 at 3:00 PM Jack Lin wrote: > >> DOCUMENTATION >> >> >> 在 2020年6月11日 於 上午2:58:42, chaitanya orakala

autocomplete django in visual studio code

2020-06-09 Thread cosmos multi
I am having a problem and it is that since I have a new laptop I reinstalled arch linux and visual studio code, but when I reinstalled the software the visual studio code autocomplete for django does not work for me, for python it does without problems but When working with django, the

Re: Migrar solo una tabla

2020-06-06 Thread cosmos multi
si se puede solo es poner el comando normal y el nombre de la aplicacion El sáb., 6 jun. 2020 a las 19:32, Gabriel Araya Garcia (< gabrielaraya2...@gmail.com>) escribió: > Pregunta: > Se puede migrar solo una tabla, ya que las otras estan ok. Es decir, > ¿sepuede: > python manage.py

Problems when obtaining an id, sent by a form

2020-05-16 Thread cosmos multi
Good evening, I am trying to get the id of my model Note that is sent by means of a form, but when I put form.id it tells me that id is not defined, try to get it through the user session but it says that it was not found. def add_book(request): template_name = 'books/create_note.html' book =

Re: didn't return an HttpResponse

2020-05-08 Thread cosmos multi
messages.error(request, "There was an error in the form, please > correct it below") > return self.get(request, *args, **kwargs) > > Now this is only an example - you will need to handle the fact the the > form need so be added to returned request as well. > >

didn't return an HttpResponse

2020-05-08 Thread cosmos multi
I am trying to populate a database, but when I send it it gives me the following error didn't return an HttpResponse this is the form class ProductForm(forms.ModelForm): name_product = forms.CharField( max_length=25, widget=forms.TextInput( attrs={ 'class': 'form-control', 'id': 'name_product',

Re: error en ejercicio de principiante, no se que hacer

2020-03-28 Thread cosmos multi
Um pues la verdad te estas complicando demasiado solo configura los archivos template en settings.py es lo que te recomiendo. El sáb., 28 mar. 2020, 4:18 p. m., Federico Gomez escribió: > saludos, tengo un error haciendo una practica en Django con el video Curso > Django. Plantillas I. Vídeo 5,

What is the difference between virtual environment and normal code in pycharm

2020-03-19 Thread cosmos multi
Hi ravi. In pycharm the virtual environment is created according to the project you choose, making this a little more automatic, making the installation or updating of packages more friendly, while a normal one is you who chooses what it should have -- You received this message because you