Re: CKEditor

2016-04-11 Thread Luis Zárate
Supongo está usando django-ckeditor, si es así lo que tiene que hacer es usar el field que ellos proporcionan. https://github.com/django-ckeditor/django-ckeditor#field además recuerde usar {{form.media}} en la plantilla, para que se cargue el js. -- You received this message because you are su

Re: Question about users system

2016-04-15 Thread Luis Zárate
I thing Sites framework do something similiar to you problem, so you could study how is implemented. https://docs.djangoproject.com/en/1.9/ref/contrib/sites/ El viernes, 15 de abril de 2016, Eduardo Leones < edua...@ypytecnologia.com.br> escribió: > Javier, thanks for the answer. > Very inter

Re: How to customizing CSS in djangocms-table

2016-04-16 Thread Luis Zárate
You only need to overwrite the template https://github.com/divio/djangocms-table/blob/master/djangocms_table/templates/cms/plugins/table.html Django template engine find the template in the order of INSTALLED_APPS, so you only need to put an app with your version of templates/cms/plugins/table.ht

Re: django staticfiles problem

2020-10-15 Thread Luis Zárate
You have a problem here {% static '/css/base.css' %} the correct is {% static 'css/base.css' %} Also is a bad idea set media folder in static. take a look here https://docs.djangoproject.com/en/3.1/howto/static-files/ El mié., 14 oct. 2020 a las 23:05, Farai M () escribió: > Why have the

Re: can Django replace PHP ?

2021-06-28 Thread Luis Zárate
Hi, you can create several web applications with Django. So I guest you can replace all web stuff with Django or other lib in python for web development. El lun, 28 jun 2021 a las 7:17, Krishna Adhikari () escribió: > Hello all my seniors > > I am doing Data Science programming (python) for 3 ye

Re: SChedule email

2021-07-01 Thread Luis Zárate
You can create a custom command using this doc https://docs.djangoproject.com/en/3.1/howto/custom-management-commands/ Now, you can call it like python manage.py mycustomcommandname so in Linux environment you can use crontab (with crontab -e) to execute the command. El jue, 1 jul 2021 a las

Re: Help on Creating a Superuser account on render.

2024-04-10 Thread Luis Zárate
Maybe something like python manage.py shell -c "from django.contrib.auth.hashers import make_password;from django.contrib.auth.models import User; admin = User(username='username', email='exam...@example.com', password=make_password('password'), is_superuser=True,is_staff=True);admin.save()" El

Re: DRF Trailing Slah

2024-04-12 Thread Luis Zárate
Check your URL.py and append the slash, also take a look of https://docs.djangoproject.com/en/5.0/ref/settings/#append-slash El vie, 12 abr 2024 a las 15:40, MISHEL HANNA () escribió: > Hello > i have endpoint when add / to the end of it i can not send request it > return this > Not Found: /api/

Re: How to effectively use PUT and DELETE HTTP methods in Django Class-Based Views?

2024-04-12 Thread Luis Zárate
See https://docs.djangoproject.com/en/5.0/topics/class-based-views/#supporting-other-http-methods Also on view you have a variable called, where you can limit the available methods. http_method_names El vie, 12 abr 2024 a las 7:20, Mamadou Alpha Bah (< mamadoualphabah...@gmail.com>) escribió: >

Re: How to effectively use PUT and DELETE HTTP methods in Django Class-Based Views?

2024-04-12 Thread Luis Zárate
Also a recomendation, see that `dispatch` method call the view as handler(request, *args, **kwargs) So maybe is a good idea do something like: class MyView(view): def put(self, request, *args, **kwargs): ... Regards, El vie, 12 abr 2024 a las 16:13, Luis Zárate () escribió

Alternatives to django ajax select

2019-10-30 Thread Luis Zárate
Hi Guys, Do you know any alternative to django-ajax-selects, I am using it in a project in django 2.2 but docs says that support <=2.1 and also has some problems with the version on jquery used, so I am looking something that help to remplace this lib. https://github.com/crucialfelix/django-ajax-

<    1   2   3