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ó

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: 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:

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()"

Re: Send PDF as an email's attachment ( Working with xhtml2pdf library)

2021-10-25 Thread Luis Zárate
Hi, Here is solved: https://github.com/luisza/async_notifications/blob/master/async_notifications/tasks.py El vie, 8 oct 2021 a las 7:45, MR INDIA () escribió: > Answer to this query on stack overflow > > Raw

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: 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

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

Re: Inability to Connect django with MySQL database

2020-03-20 Thread Luis Zárate
This looks like your Mysql user can login without password in localhost (are you sure, your user has correct permissions?). Try to create a user with password and allow login from localhost, and change your django settings, also try to connect with your user with mysql client from localhost. El

Re: importar datos en tiempo real de una base de datos externa

2020-03-20 Thread Luis Zárate
Hola, Revisa la siguienten documentación - https://docs.djangoproject.com/en/3.0/topics/db/multi-db/ - https://docs.djangoproject.com/en/3.0/howto/legacy-databases/ La idea es que puede hacer una app que sea una conexión a la db a travez de modelos creados con inspectdb (debe hacer algunas

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.

Re: Update many to many django

2019-04-10 Thread Luis Zárate
Creo que zip está explicado acá https://www.programiz.com/python-programming/methods/built-in/zip El miércoles, 10 de abril de 2019, Karen Tatiana Mesa Lopez escribió: > Hola Luis, tengo la ultima pregunta, te agradezco mucho tu ayuda > voy a realizar un for doble, mi pregunta puntual seria,

Re: Update many to many django

2019-04-09 Thread Luis Zárate
= models.ForeignKey(Tema, on_delete=models.CASCADE) > quedo muy atenta a tu respuesta. > Muchas gracias > > El lun., 8 de abr. de 2019 a la(s) 21:11, Luis Zárate (luisz...@gmail.com) escribió: >> >> Hola, >> >> Las relaciones M2M pueden trabajarse de difer

Re: Update many to many django

2019-04-08 Thread Luis Zárate
Hola, Las relaciones M2M pueden trabajarse de diferentes formas, acá está la doc de django https://docs.djangoproject.com/en/2.2/topics/db/examples/many_to_many/ Si lo que quieres es hacer algo rápido puedes usar un model form factory

Re: How to upload pdf files in django

2019-03-03 Thread Luis Zárate
Files come on request.FILES and remember form need to be multipart . El domingo, 3 de marzo de 2019, Hrishikesh K.B escribió: > > > On Saturday, 2 March 2019 20:42:01 UTC+5:30, Akshay Gupta wrote: >> >> and to get back data from form request.POST['file_name'] ?? > > See

Re: Create a Celery task with Django

2019-02-13 Thread Luis Zárate
See http://django.pyexcel.org/en/latest/ Clean code could be made with this library. El miércoles, 13 de febrero de 2019, valentin jungbluth < valentin.a...@gmail.com> escribió: > Thank you Andréas ! > > I understand your comment, but it could be possible to illustrate it with my code ? I spent

Re: Create a Celery task with Django

2019-02-13 Thread Luis Zárate
As Andreas suggest I try to create a function that receive a file object and save the excel content there, Django response works like a file so when you have a less than 7 then pass the http response and change the headers. With celery you can store your firters on str as json file and pass

Re: The view blog.views.create didn't return an HttpResponse object. It returned None instead.can any one help me this issue please nooob here

2017-09-11 Thread Luis Zárate
if request.method == "GET": if request.method == "POST": Uppercase is needed. 2017-09-11 17:36 GMT-06:00 harsh sharma : > here i m learning django and i m stuck on one thing > the web page returning > > The view blog.views.create didn't return an HttpResponse

Revert database scheme based on django migrations

2017-09-11 Thread Luis Zárate
Hello people, I really would like you to help me with some thing I need to solve. I have an app that do automated deployment of django apps, that also can update existing deployments. So I need to revert my database to last state if something went wrong. So, my question is, how can I revert all

Re: Django search

2017-01-18 Thread Luis Zárate
This could be usefull Model.objects. filter(q='hello', b='world') Can be expressed as params ={'q': 'hello', 'b': 'world') Model.objects.filter (**params) El martes, 17 de enero de 2017, Branko Zivanovic < international11...@gmail.com> escribió: > Yes that is true, and I have succeeded in

Re: [Ryu-devel] dhcp server with ryu controller

2017-01-10 Thread Luis Zárate
Something like this dhcp rest responder. The api is: Set dhcp in a switch PUT /dhcp/add/{dpid} params 'ipaddress': '192.168.1.1' 'netmask': '255.255.255.0' 'address': '0a:e4:1c:d1:3e:44' 'dns': '8.8.8.8' 'startip':'192.168.1.100' 'endip': '192.168.1.200' Set static ip in

Re: Spanish translation

2017-01-10 Thread Luis Zárate
ould be helpful. :) > > It is used to signify that no value has been set for the "AD Domain" field > in > the table of images under Manage Images->Edit Image Profiles. In case it > matters, it is also displayed with parenthesis around it, i.e. > > (unset) > &g

Re: Spanish translation

2017-01-10 Thread Luis Zárate
uary 9 2017 2:18:02 PM Josh Thompson wrote: > > Luis, > > > > Thanks so much for doing this! I'll look over it and hopefully commit it > > soon. > > > > Josh > > > > On Mon January 2 2017 11:40:32 AM Luis Zárate wrote: > > > Hi, > > >

Re: Django doesn't email reporting an internal server error (HTTP status code 500)

2016-12-29 Thread Luis Zárate
try to change de django loggin https://docs.djangoproject.com/en/1.10/topics/logging/#examples 2016-12-28 9:45 GMT-06:00 Philip Lee : > Please help! The question are also posted here > http://stackoverflow.com/questions/41363888/django- >

Re: File/Folder Sync API?

2016-12-29 Thread Luis Zárate
Are you looking for something like webdav https://github.com/meteozond/djangodav http://django-webdav-storage.readthedocs.io/en/latest/ or something like dinamic dropbox storage https://github.com/andres-torres-marroquin/django-dropbox 2016-12-28 12:15 GMT-06:00 Alexander Joseph

[Ryu-devel] Documentation of ryu.lib.ovs

2016-12-06 Thread Luis Zárate
Hi, I want to interact OVSDB using ryu.lib.ovs lib, but I can find documentation of how to work with this lib. For example how I can create a bridge and set a port. I found https://github.com/osrg/ryu/blob/master/ryu/lib/ovs/bridge.py but there is a CONF parameter that I don't know what it

Re: How to hook into the admin site to count login attempts with REST API / proxy?

2016-11-20 Thread Luis Zárate
Hi You can override the admin login page overwriting the URLs, you can put your own login view in admin/account/login after admin include in URLs El domingo, 20 de noviembre de 2016, Reza Shalbafzadeh < rezashal...@gmail.com> escribió: > Hi > you still can use Django axes as described in Django

Re: Adding view permission by default to auth_permission

2016-11-10 Thread Luis Zárate
next week but will do so when back. > > Bests > > On 27 Oct 2016 23:23, "Luis Zárate" <luisz...@gmail.com> wrote: >> >> This is alive in >> >> https://github.com/django/django/pull/6734 >> >> The other PR was close because this have not merge

Re: External access

2016-11-10 Thread Luis Zárate
First, start testing you machine port is available in your local network run python manage.py runserver 0.0.0.0:8000 In other machine in the same network test it Suppose your django machine has internal ip address 192.168.1.100, then try to access 192.168.1.100:8000 from your web browser in the

Re: Setting up jQuery in debian with virtualenv

2016-11-10 Thread Luis Zárate
Mmm why not just download Jquery and create a folder called static inside one controlled app, maybe pone inside the project. If you want, you can use django admin jquery but $ is not available because django use django.JQuery for prevent conflict with custom user jquery El jueves, 10 de

Re: Adding view permission by default to auth_permission

2016-10-27 Thread Luis Zárate
This is alive in https://github.com/django/django/pull/6734 The other PR was close because this have not merge conflict. I think this functionality is needed an will be included soon. El jueves, 27 de octubre de 2016, mmatt escribió: > On another note, I believe django

Re: How to use Django forms for surveys

2016-10-26 Thread Luis Zárate
Hi, we are developing something like you want, but it's a premature project right now, maybe in few months we launch our first stable version (survey monkey be aware...), the project home page is https://github.com/solvo/derb , see development branch for a updated version. So if you are

Re: Read Only by user in Django Admin

2016-10-25 Thread Luis Zárate
you are looking something like https://code.djangoproject.com/ticket/7150 https://code.djangoproject.com/attachment/ticket/7150/admin_view-permission-1.0.patch https://code.djangoproject.com/attachment/ticket/7150/newforms-admin-view-permission-r7737.patch

Re: How to: Django development and debugging

2016-10-25 Thread Luis Zárate
2016-10-23 17:08 GMT-06:00 Don Thilaka Jayamanne <don.jayama...@gmail.com>: > @Luis Zárate > >I dislike VS as IDE but > Please remember, this is Visual Studio Code (cross platform, open source, > free) and not to be confused with Visual Sutdio IDE (full blown IDE runs > o

Re: How to: Django development and debugging

2016-10-23 Thread Luis Zárate
I rarelly debug code with django, with external utility, just trace stack when errors appears, buy when I need it I use pydev over Aptana, it has heap monitor, breakpoints, step by step run and other debugger functions. One important thing is that I need to say to pydev that run django with

Re: Django software docs

2016-09-30 Thread Luis Zárate
Are you looking for something like https://d3js.org/ ? Or something like blender with django ? El lunes, 26 de septiembre de 2016, Jani Tiainen escribió: > Hi, > > What you expect Django to do for you? > > Django has been successfully used to write great variety of webapps

Re: [Help] Advanced tutorial: How to install my Python package with Virtualenv

2016-09-30 Thread Luis Zárate
You need to create a setup.py file (see setuptools doc) it's a simple file find examples. Then do python setup.py sdist This will create dist file then surft to the .tar.gz file pip install -u django-poll.tar.gz Or you also can do python setup.py install El martes, 27 de septiembre de

Re: [Ryu-devel] REST router and firewall running together

2016-09-23 Thread Luis Zárate
Hi, I agree with renanrb, I am trying to implement L3 service as a service without ryu openstack agent so I have the same problem, I need to run firewall, router, nat in the same datapath manage by rest API. So how I can run all services with precedence order ? renanrb are you interested in

Re: [Ryu-devel] Official NAT App

2016-09-13 Thread Luis Zárate
i Muraoka <shinpei.mura...@gmail.com>: > Hi, > > Ryu does not have any official NAT application. > If you want to use NAT, please refer to the following. > > http://ryu.readthedocs.io/en/latest/nicira_ext_ref.html#ryu. > ofproto.ofproto_v1_3_parser.NXActionNAT > &g

Re: Can't create editable foreign key field in Django admin: going to give up on django

2016-09-12 Thread Luis Zárate
See https://github.com/django-parler/django-parler 2016-09-12 23:02 GMT-06:00 Hanh Kieu : > Hey guys, I'm creating a translation app that allows you to translate from > one object to the other. My translation model has two foreign keys that > links to two words, and on the

Re: [Ryu-devel] combine two application

2016-09-10 Thread Luis Zárate
I have the same question, I want to controller a firewall and router and nat in the same data path with an instance of ryu. El miércoles, 7 de septiembre de 2016, wesam kh escribió: > hi ryu team > I need to combine two application first :firewall like in ryu book in

[Ryu-devel] Official NAT App

2016-09-10 Thread Luis Zárate
Is there any official nat app for ryu ? If Is not, is there any NAT (dnat and snat) app that I can use in my lab? -- "La utopía sirve para caminar" Fernando Birri -- ___

Re: Custom form fields in admin site

2016-09-09 Thread Luis Zárate
and the > modeladmin readonly_fields. > > > > 2016-09-08 18:41 GMT+02:00 Luis Zárate <luisz...@gmail.com>: > >> Hi, I am trying to do something like >> >> >> class MyForm(forms.ModelForm): >> myextra_field = forms.IntegerField() >> >>

Re: Django group email in spam

2016-09-08 Thread Luis Zárate
I have the same behavior 2016-09-08 7:06 GMT-06:00 Uri Even-Chen : > Same here, and the problem is I filtered the group messages to skip my > inbox in Gmail, and I can't filter them never to send them to spam, because > then they will not skip my inbox (it's a bug in Gmail). So

Re: Python post to remote host

2016-09-08 Thread Luis Zárate
see http://docs.python-requests.org/en/master/ 2016-09-08 5:57 GMT-06:00 alireza Rahmani khalili < sanfrancisco.alir...@gmail.com>: > > > down votefavorite > > > Hi I want to write robot to register in toefl test , I send

Custom form fields in admin site

2016-09-08 Thread Luis Zárate
Hi, I am trying to do something like class MyForm(forms.ModelForm): myextra_field = forms.IntegerField() class Meta: models = Mymodel fields = '__all__' class MymodelAdmin(admin.ModelAdmin): form = MyForm fields = ["name", 'myextra_field'] def

Re: multiple django installation in one server

2016-09-07 Thread Luis Zárate
Take a look http://michal.karzynski.pl/blog/2013/06/09/django-nginx-gunicorn-virtualenv-supervisor/ , You can do this steps for ever django project in the same server 2016-09-07 7:28 GMT-06:00 miarisoa sandy : > Hi guys, > > I hope you are doing fine. > I have

VLC Network improve with SDN approach.

2016-09-02 Thread Luis Zárate
. My name is Luis Zárate, I work for Solvo ( solvosoft.com) and in Solvo we are working in a Universidad de Costa Rica (UCR) project based in VCL. In the UCR we detect that VCL needs a better network approach, because service like DNS, DHCP,NAT, VPN,Firewall are not include as part of reservation

Re: need translation help for 2.5

2016-09-02 Thread Luis Zárate
Hi, I am working in es_CR translation and I will get ready soon so complete spanish translation is coming soon, but I am confused about how to submit my changes. My background is in git so I know how works a version control software so in the instructions of previous mail you put inside trunk

Re: New to Django

2016-08-16 Thread Luis Zárate
Hi, Try to implement a custom tag that can print Any dictionary in the form that you want. https://docs.djangoproject.com/en/1.10/howto/custom-template-tags/ El martes, 16 de agosto de 2016, Wolf Painter escribió: > Anyone have any ideas? I'm really stuck here... > >

Re: [Ryu-devel] Overlay network based on grep tunnel

2016-08-05 Thread Luis Zárate
Hello everybody, 2016-08-02 1:58 GMT-06:00 Iwase Yusuke : > Your scenario seems to show that the GRE overlay network is implemented > between Host1 and Host2, right? No, I don't want a host to host tunnel, I want to create a NVGRE so the tunnels are between host an

Re: [Ryu-devel] How to send data from controller to the host

2016-08-05 Thread Luis Zárate
It's something like this echo package pkt = packet.Packet() pkt.add_protocol(ethernet.ethernet(ethertype=pkt_ethernet.ethertype, dst=pkt_ethernet.src, src=self.hw_addr)) pkt.add_protocol(ipv4.ipv4(dst=pkt_ipv4.src,

[Ryu-devel] Overlay network based on grep tunnel

2016-07-29 Thread Luis Zárate
Hi, I am trying to implement a overlay network based on grep tunnel, but I am having some problems, my scenario is like this [image: Imágenes integradas 1] My problem is that I receive the incoming package to L2/L3 switch implemented in Ryu controller with different MAC address every time. I

Re: Installation

2016-07-28 Thread Luis Zárate
Take a look this http://michal.karzynski.pl/blog/2013/06/09/django-nginx-gunicorn-virtualenv-supervisor El miércoles, 27 de julio de 2016, Sergiy Khohlov escribió: > Take a look at https://jeffknupp.com/blog/2012/02/09/starting-a-django-project-the-right-way/ this is perfect

Re: Any way to force Django to commit a write so another process can read the correct data from DB?

2016-07-27 Thread Luis Zárate
I thing java apps have a cache and it is java who is not looking in the database. I was a similar problem with hirbernate time ago. But I never solved other person solved it and I don't know how. El miércoles, 27 de julio de 2016, Constantine Covtushenko < constantine.covtushe...@gmail.com>

Re: Django Admin - customize use jquery inside and custom fields.

2016-07-08 Thread Luis Zárate
See https://docs.djangoproject.com/en/1.9/topics/forms/media/ 2016-07-08 10:58 GMT-06:00 Luis Zárate <luisz...@gmail.com>: > > 2016-07-08 10:24 GMT-06:00 <sevenrrain...@gmail.com>: > >> and save the new im > > > You can start reading how to set css an

Re: Invalid HTTP_HOST header in shared server

2016-07-08 Thread Luis Zárate
nobody knows how to solve this problem? -- 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. To post to this group, send

Re: How I can access to the jQuery, it is build-in Django-Admin, in my custom views?

2016-07-04 Thread Luis Zárate
renceError: django is not defined(…)(anonymous function) @ > VM9451:1 > $() > null > $django.jQuery('body') > Uncaught ReferenceError: $django is not defined(…) > > On Sun, Jul 3, 2016 at 9:08 PM, Luis Zárate <luisz...@gmail.com> wrote: > >> Replace $ by django.jQuery

Re: How I can access to the jQuery, it is build-in Django-Admin, in my custom views?

2016-07-03 Thread Luis Zárate
Replace $ by django.jQuery For example django.jQuery('body') El domingo, 3 de julio de 2016, Seti Volkylany escribió: > > The Django`s docs tell next: > To avoid conflicts with user-supplied scripts or libraries, Django’s jQuery (version 2.1.4) is namespaced as

Re: django form data not saving to database

2016-06-28 Thread Luis Zárate
models.OneToOneField(Category,default='category') This is not set in form and not set in view and is not null so when you do post.save() error was raised and post is not saved. I don't sure that you can pass str as default for OnetoOne and I am not sure that you need a OnetoOne field I think

Re: Best way to implement list pattern

2016-06-28 Thread Luis Zárate
Maybe with generic view https://docs.djangoproject.com/en/1.9/topics/class-based-views/ Especially with https://docs.djangoproject.com/en/1.9/topics/class-based-views/generic-display/ There is a lot information about how to implement what you need. El martes, 28 de junio de 2016, Jean-Noël

Invalid HTTP_HOST header in shared server

2016-06-27 Thread Luis Zárate
Hi, I am having some issue with gunicorn/nginx configuration. I have a shared server that support several sites (all based in Django) with the same ip address. Invalid HTTP_HOST header: 'www.mysite.com'. You may need to add ' www.mysite.com' to ALLOWED_HOSTS. I checked and all projects have

Re: python manage.py runserver error

2016-06-24 Thread Luis Zárate
Check running python manage.py migrate other thing, are you sure that you have a correct database setup? El viernes, 24 de junio de 2016, Gary Roach escribió: > Hi Saranyoo > > I noticed that you are using python 2.7 with django 1.9.7. I would check the django docs

Re: Django urls.py reload (not from database)

2016-06-23 Thread Luis Zárate
I put all in urls and check permissions with https://docs.djangoproject.com/en/1.9/topics/auth/default/#django.contrib.auth.decorators.user_passes_test so if not config.L7V_INITIALIZATED I raise a 404 exception. No need to reload urls. 2016-06-23 8:02 GMT-06:00 Thomas

Re: choices field language

2016-06-21 Thread Luis Zárate
Use in the first line #- coding: utf-8 from __future__ import unicode_literals And put in models from django.utils.encoding import python_2_unicode_compatible @python_2_unicode_compatible class MyClass(object): def __str__(self): return "Instance of my class" See more in

Re: Non Ascii character in upload file crash in python 3

2016-06-08 Thread Luis Zárate
I am using supervisor and gunicorn for production run as fondomutual user. $ env | grep LANG LANG=es_CR.UTF-8 LANGUAGE=es_CR:es 2016-06-08 2:09 GMT-06:00 Luis Zárate <luisz...@gmail.com>: > After obj.save(). > > File > "/home/fondomutual/entornos/fomeucr/lib/python3.4/

Re: Non Ascii character in upload file crash in python 3

2016-06-08 Thread Luis Zárate
e character '\xd1' in position 74: ordinal not in range(128) Request information: GET: No GET data 2016-06-08 2:06 GMT-06:00 Stephen J. Butler <stephen.but...@gmail.com>: > Whats the stack trace? > > On Wed, Jun 8, 2016 at 3:01 AM, Luis Zárate <luisz...@gmail.com> wrote: >

Re: Non Ascii character in upload file crash in python 3

2016-06-08 Thread Luis Zárate
I am in Debian, in /etc/locale.gen es_CR.UTF-8 UTF-8 $ locale -a C C.UTF-8 es_CR.utf8 POSIX 2016-06-08 2:01 GMT-06:00 Luis Zárate <luisz...@gmail.com>: > $ python manage.py shell > > >>> import sys > >>> sys.getfilesystemencoding() > 'utf-8' >

Re: Non Ascii character in upload file crash in python 3

2016-06-08 Thread Luis Zárate
robably have a system setup where ASCII is the filesystem encoding. > It tells you a way to fix that on Linux/Unix. > > On Wed, Jun 8, 2016 at 2:44 AM, Luis Zárate <luisz...@gmail.com> wrote: > >> Hi, >> >> I am having this issue in server production, I developed with

Non Ascii character in upload file crash in python 3

2016-06-08 Thread Luis Zárate
Hi, I am having this issue in server production, I developed with python 3 and with others fields work great but when file is involved I don't know how to intermediate and remove non ascii characters. Part of my stack trace is: Internal Server Error: /vistapublica/perfil/editar

Network scan tool.

2016-06-07 Thread Luis Zárate
Hi, With your deadline is too difficult (impossible), but if you are a crack in django and celery and nmap this tool could be useful https://pypi.python.org/pypi/python-nmap El martes, 7 de junio de 2016, James Schneider escribió: > > > On Tue, Jun 7, 2016 at 6:01 AM,

Re: URL design

2016-06-03 Thread Luis Zárate
I can test this right now but based in my experience in re I think could be like this url(r'^(?P[a-zA-Z0-9_\-]+)/(?P[a-zA-Z0-9_\-]+)/(?P([a-zA-Z0-9_\-]+)/){7})$', views.item_list) Be worry with / in views El viernes, 3 de junio de 2016, Горобец Дмитрий escribió: > Hello,

Re: Is a good practice to put app inside another?

2016-06-03 Thread Luis Zárate
Django contrib is a good example of how put app inside other package. El viernes, 3 de junio de 2016, Carl Meyer escribió: > On 06/03/2016 01:37 PM, Neto wrote: >> My project has several apps, some of them depend on others, it is ok to >> add for example 3 apps within another

Re: Why is my Django template not displaying?

2016-06-03 Thread Luis Zárate
Use plays as a list in form. You are passing context_list as context object so all variable inside context_list are available in template but not context_list. Other option is return render(request,'live.html', {"context_list": context_list}) El viernes, 3 de junio de 2016, Dave N

Re: CSS question for the Admin

2016-06-02 Thread Luis Zárate
Include your own CSS en admin meta class myAdmin(admin.ModelAdmin): class Meta: css ={'all': ['yourcss.css']} El jueves, 2 de junio de 2016, Mike Dewhirst escribió: > On 2/06/2016 7:31 PM, Michal Petrucha wrote: >> >> On Thu, Jun 02, 2016 at 07:22:16PM

Re: Django Suit admin panel - Static files configuration Django 1.6 not working

2016-06-02 Thread Luis Zárate
Where is STATIC_ROOT ? static_root path needs to match with nginx /static location. El miércoles, 1 de junio de 2016, Roger Lanoue jr escribió: > Hi Django users group. > I am test and learning django out. I have a testing server and got my test page up. > Started to play

Re: Hi - I'm new to Python and DJango

2016-06-02 Thread Luis Zárate
Sure, It's good enough and more. There is some development in ERP but nothing stable or usable (not that I known). So if you are interested in develop something could be great know about. Note: I thing first step is search what programs exists and try to collaborate with one, but if nothing is

Re: How to send e-mail asynchronously

2016-05-28 Thread Luis Zárate
I wrote something for send async notification that works with celery https://github.com/luisza/async_notifications There is a demo project and some ideas about how to implement it. If you like you can use it and if you want to extend do it and let me know for incorporate you're code. El

Re: Displaying a document

2016-05-21 Thread Luis Zárate
2016-05-21 13:21 GMT-06:00 Wilfredo Rivera : > {{candidate.resumeFile}}" {{candidate.resumeFile.name}} " Looking in your code probably you could be interested in https://docs.djangoproject.com/ja/1.9/ref/class-based-views/generic-editing/ -- "La utopía sirve para

Re: Displaying a document

2016-05-21 Thread Luis Zárate
Do you have a model with a fileField? I think you are wrong passing file to template, if you have a model with filefield you can use media url something like class Mymodel(Model): myfile = models.FileField(upload_to="my_file_path_in_media") so you can use a form class

Re: is there any django app for opendata

2016-05-20 Thread Luis Zárate
Sure, I need something like CKAN, I saw it time ago and I forget it. Thanks you. I have not problem if I is not in Django, I like Python too and can learn other frameworks. Thanks you. El viernes, 20 de mayo de 2016, Derek escribió: > Not to discourage you, but there is

is there any django app for opendata

2016-05-19 Thread Luis Zárate
Hi, I interested in opendata and open government so I am looking for tools to build a platform for a local government. I really like django, I like to build system with it so I want to implement something useful that help to create and transparent and eficient for free Do you have some

Re: Is there a spanish version of Two Scoops of Django?

2016-05-18 Thread Luis Zárate
That sound very good, so if you need help with translations I could help you in my few free time. Break language barrier is so important for me, I think more people could learn django faster and without discrimination. So ViVa la libertad. :) El martes, 17 de mayo de 2016, David Alejandro Reyes

django middleware process exception not call

2016-05-18 Thread Luis Zárate
Hi, I was working with middleware that catch exceptions and redirect to other view depending of except type. My idea was raise custom exceptions in several parts of the code and catch in middlewaware with proces exception function, but I have an exception raise in template tag when template is

Re: my mysite/templates/admin/base_site.html is ignored (tutorial unclear?)

2016-04-25 Thread Luis Zárate
Sory for not answer before, but I think I could help. First you need to know how django find the templates, so take a look template loaders https://docs.djangoproject.com/en/1.9/ref/templates/api/#django.template.loaders.filesystem.Loader There are two default loaders (filesystem and app )

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

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

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

Re: Dedicated pages for specific group members

2016-04-08 Thread Luis Zárate
Admin site is a great example of how to do that. But in general you can use in the view if not request.user.has_perm("app name.perm name): Raise error like 404 or redirect to login I think decorator is provide by django. El jueves, 7 de abril de 2016, Larry Martell

Re: how shall I built online address book using Django

2016-04-06 Thread Luis Zárate
Maybe if you help us web could help you. How do you design your problem? What are your coding plans? What problems do you identify? What do you need to know ? ( models, views, urls, admin site) Django and the other frameworks are only utilities, are in you the responsability to solve the

Re: url redirect with kwargs no NoReverseMatch

2016-04-05 Thread Luis Zárate
reverse('yourDollData', args=(doll.id,)) El martes, 5 de abril de 2016, Luigi Mognetti escribió: > http://stackoverflow.com/questions/36411798/url-redirect-with-kwargs-no-noreversematch > > main-project urls.py : > from django.conf.urls import include, url >

Re: Busqueda de Django admin

2016-03-27 Thread Luis Zárate
https://docs.djangoproject.com/en/1.8/ref/contrib/admin/#django.contrib.admin.ModelAdmin.search_fields Si no es eso tiene que explicar mejor que es lo que necesita. Además recuerde que esta lista es en inglés. 2016-03-27 16:00 GMT-06:00 : > Necesito saber como modificar

Re: Hey guys can anyone let me know where I can get some of good Django base web apps

2016-03-21 Thread Luis Zárate
https://www.djangopackages.com/ El lunes, 21 de marzo de 2016, Tibin Geo k k escribió: > I am looking for some good Django web applications, if we have any site to download some Django projects let me know > > -- > You received this message because you are subscribed to

Re: unhashable type: 'dict'

2016-03-15 Thread Luis Zárate
You are correct, your problem is in logout url , because you need to pass a function not a duct as second parameter. Are you using django auth views ? https://docs.djangoproject.com/en/1.9/topics/auth/default/#django.contrib.auth.logout El martes, 15 de marzo de 2016, Deepanshu Sagar

Re: Django OVH

2016-03-06 Thread Luis Zárate
Take a look here https://code.djangoproject.com/wiki/DjangoFriendlyWebHosts El viernes, 4 de marzo de 2016, Bob Gailer escribió: > > On Mar 4, 2016 5:09 PM, "Cedric Vallee" wrote: >> >> To whom it may concern, >> >> I followed my friends' advice

Encoding problem (Postgres)

2016-03-06 Thread Luis Zárate
The problem is in your __str__() function, because Python 2 use __unicode__() instead of str to return Unicode string. By default p2 return bytes in __str__ and p3 return Unicode. python_2_unicode_compatible works and I thing it is the best approach because you are support both version 3/2 . I

Re: I don't understand this error - Django 1.9

2016-03-04 Thread Luis Zárate
Do not use the same name of the project in your apps. It is possible to do what you are doing but really needs comprehension of how python works and you need to do extra work to get ready. So my remendation is: start a clean project with other name and copy you app folder. Put attention in what

Re: How to create groups for users in Django

2016-03-04 Thread Luis Zárate
Años observation Person.objects.create(name=request.user) Lazy object is set but name is charfield. M1is not saved. form.save() create other group that is not used. El jueves, 3 de marzo de 2016, escribió: > Hello! > > I have a problem, like in topic, with creating

Re: Django Hello

2016-03-04 Thread Luis Zárate
I am not in Cuba, but there are internet limitations (bandwidth) and restrictions (regional banned and site blacklist) expecially if servers are in USA (not America), for this reason it is important to him download a file. El viernes, 4 de marzo de 2016, Luis Zárate <luisz...@gmail.com> es

Re: Django Hello

2016-03-04 Thread Luis Zárate
In fat bellow says: I can send you some pdf split in files of 2mb. Hola, si quiere puedo envíarle por email algunos tutoriales en pdf . Yo uso linux por lo que puedo partirlos con split y Ud podrá unirlos con cat. Django se basa en python Ud conoce este lenguaje. El viernes, 4 de marzo de

  1   2   3   >