Re: Need help whit DJANGO_SETTINGS_MODULE

2020-04-24 Thread DANIEL URBANO DE LA RUA
are you using virtual environment?

El vie., 24 abr. 2020 a las 14:33, Raja Sekar Sambath ()
escribió:

> could you share the solution here
> resetting PC didn't making any sense to me
>
> On Sun, 19 Apr 2020 at 19:19, Ilie Ioana  wrote:
>
>> After resetting the pc it worked.
>> Thanks.
>>
>> On Sunday, April 19, 2020 at 4:39:50 PM UTC+3, Ilie Ioana wrote:
>>>
>>> The project structure:
>>>
>>>
>>> (test1) ioana.i@ioana-spamexperts:~/Workspace/Ioana/test1/test1$ tree
>>> .
>>> ├── manage.py
>>> └── test1
>>> ├── asgi.py
>>> ├── __init__.py
>>> ├── settings.py
>>> ├── urls.py
>>> └── wsgi.py
>>>
>>>
>>>
>>> :~/Workspace/Ioana/test1/test1$ python manage.py runserver
>>> Traceback (most recent call last):
>>>   File "manage.py", line 21, in 
>>> main()
>>>   File "manage.py", line 17, in main
>>> execute_from_command_line(sys.argv)
>>>   File
>>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/__init__.py",
>>> line 401, in execute_from_command_line
>>> utility.execute()
>>>   File
>>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/__init__.py",
>>> line 395, in execute
>>> self.fetch_command(subcommand).run_from_argv(self.argv)
>>>   File
>>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/base.py",
>>> line 328, in run_from_argv
>>> self.execute(*args, **cmd_options)
>>>   File
>>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/commands/runserver.py",
>>> line 60, in execute
>>> super().execute(*args, **options)
>>>   File
>>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/base.py",
>>> line 369, in execute
>>> output = self.handle(*args, **options)
>>>   File
>>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/commands/runserver.py",
>>> line 67, in handle
>>> if not settings.DEBUG and not settings.ALLOWED_HOSTS:
>>>   File
>>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/conf/__init__.py",
>>> line 76, in __getattr__
>>> self._setup(name)
>>>   File
>>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/conf/__init__.py",
>>> line 61, in _setup
>>> % (desc, ENVIRONMENT_VARIABLE))
>>> django.core.exceptions.ImproperlyConfigured: Requested setting DEBUG,
>>> but settings are not configured. You must either define the environment
>>> variable DJANGO_SETTINGS_MODULE or call settings.configure() before
>>> accessing settings.
>>>
>>>
>>>
>>>
>>> On Sunday, April 19, 2020 at 4:35:11 PM UTC+3, Ayser shuhaib wrote:

 to run the server use:
 Python manage.py runserver

 It would be better if you send a picture of the project files structure.

 On Sun, 19 Apr 2020 at 15:22, Ilie Ioana  wrote:

> Hi,I'm new with django and python.
> I just strated a new django project in a venv using django 3.0 and
> seems that DJANGO_SETTINGS_MODULE is not set when running django-admin
> runserver
>
> Enter code here.(test1) 
> ioana.i@ioana-spamexperts:~/Workspace/Ioana/test1/test1$
>> django-admin runserver
>> Traceback (most recent call last):
>>   File "/home/ioana.i/Workspace/Ioana/test1/bin/django-admin", line
>> 8, in 
>> sys.exit(execute_from_command_line())
>>   File
>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/__init__.py",
>> line 401, in execute_from_command_line
>> utility.execute()
>>   File
>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/__init__.py",
>> line 395, in execute
>> self.fetch_command(subcommand).run_from_argv(self.argv)
>>   File
>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/base.py",
>> line 328, in run_from_argv
>> self.execute(*args, **cmd_options)
>>   File
>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/commands/runserver.py",
>> line 60, in execute
>> super().execute(*args, **options)
>>   File
>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/base.py",
>> line 369, in execute
>> output = self.handle(*args, **options)
>>   File
>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/core/management/commands/runserver.py",
>> line 67, in handle
>> if not settings.DEBUG and not settings.ALLOWED_HOSTS:
>>   File
>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/conf/__init__.py",
>> line 76, in __getattr__
>> self._setup(name)
>>   File
>> "/home/ioana.i/Workspace/Ioana/test1/lib/python3.6/site-packages/django/conf/__init__.py",
>> line 61, in _setup
>>

Re: Integrating Django Rest Framework with Microsoft Office 365

2020-03-02 Thread DANIEL URBANO DE LA RUA
https://realpython.com/manage-users-in-django-admin/

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO_yRT10xfNPvgeBTrrOC0kbQDLHGiCPu2jwa15cH85dByHr1A%40mail.gmail.com.


Re: How to express `foo = (bar < quox)` as a constraint

2020-01-27 Thread DANIEL URBANO DE LA RUA
sorry i diin't read to Stephen his trik is even better hahahaha but with
sigñal yo ca do other thing

El lun., 27 ene. 2020 a las 19:02, DANIEL URBANO DE LA RUA (<
dannybombas...@gmail.com>) escribió:

> you can do few thing at the same time in a model before save or whenever
> you want
>
> El lun., 27 ene. 2020 a las 19:01, DANIEL URBANO DE LA RUA (<
> dannybombas...@gmail.com>) escribió:
>
>> it is goin to be better and less cost for the db
>>
>> El lun., 27 ene. 2020 a las 19:01, DANIEL URBANO DE LA RUA (<
>> dannybombas...@gmail.com>) escribió:
>>
>>> take a look at this
>>> https://docs.djangoproject.com/en/3.0/topics/signals/
>>>
>>>
>>> El lun., 27 ene. 2020 a las 18:59, Stephen J. Butler (<
>>> stephen.but...@gmail.com>) escribió:
>>>
>>>> Frankly, if is_on_sale has such a tight constraint I wouldn't have it
>>>> as its own column. Why not just make it an annotated field with an F
>>>> expression?
>>>>
>>>>
>>>> https://docs.djangoproject.com/en/3.0/ref/models/expressions/#using-f-with-annotations
>>>>
>>>> Item.objects.annotate(is_on_sale=(F('price') < F('full_price')))
>>>>
>>>>
>>>>
>>>> On Mon, Jan 27, 2020 at 11:47 AM Peter Law  wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> Thanks for adding support for check constraints in Django 2.2, it's
>>>>> great to be able to move constraints into the model definitions.
>>>>>
>>>>> I've been trying to work out how to express a constraint which
>>>>> validates that the value of one field expresses a relation between two
>>>>> other fields, but can't find a nice way to do so.
>>>>>
>>>>> I've read through the docs and also found
>>>>> https://groups.google.com/d/topic/django-users/6Olh5V1b7Us/discussion,
>>>>> but haven't found a concise spelling.
>>>>>
>>>>> I've got a model like:
>>>>>
>>>>> ```
>>>>> class Item(Model):
>>>>> price = DecimalField()
>>>>> full_price = DecimalField()
>>>>> is_on_sale = BooleanField()
>>>>> ```
>>>>>
>>>>> I'd like to be able to express neatly that the `is_on_sale` boolean be
>>>>> true only when `price < full_price`.
>>>>> In Postgres I can express this as:
>>>>>
>>>>> ```
>>>>> ALTER TABLE item
>>>>> ADD CONSTRAINT is_on_sale_check
>>>>> CHECK (is_on_sale = (price < full_price))
>>>>> ```
>>>>>
>>>>> However in Django I can't find a way to express this directly.
>>>>>
>>>>> I did find a long spelling which essentially checks the True case and
>>>>> the False case explicitly and then ORs them together, however it's
>>>>> several lines of `models.Q` combinations and not at all clear about
>>>>> what the code is trying to achieve.
>>>>>
>>>>> Is there a concise way to do this sort of constraint? If not, would it
>>>>> be possible for Django to add support for it?
>>>>>
>>>>> Thanks,
>>>>> Peter
>>>>>
>>>>> --
>>>>> 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 view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/django-users/CAEMtty7rsf2qk_0qXnzqZdA89e6VRCqF%2B4nQSHgxVCE4XfKAnw%40mail.gmail.com
>>>>> .
>>>>>
>>>> --
>>>> 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 view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/django-users/CAD4ANxWtpqnDr_8WrQiskH7wXxBPyJ3sTWa%2BAsK1592SXWTfpw%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/django-users/CAD4ANxWtpqnDr_8WrQiskH7wXxBPyJ3sTWa%2BAsK1592SXWTfpw%40mail.gmail.com?utm_medium=email_source=footer>
>>>> .
>>>>
>>>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO_yRT1vDfqo2vRtmgUcwzc9FndWAgd3qZkxvxYptSFvcjDNKg%40mail.gmail.com.


Re: How to express `foo = (bar < quox)` as a constraint

2020-01-27 Thread DANIEL URBANO DE LA RUA
you can do few thing at the same time in a model before save or whenever
you want

El lun., 27 ene. 2020 a las 19:01, DANIEL URBANO DE LA RUA (<
dannybombas...@gmail.com>) escribió:

> it is goin to be better and less cost for the db
>
> El lun., 27 ene. 2020 a las 19:01, DANIEL URBANO DE LA RUA (<
> dannybombas...@gmail.com>) escribió:
>
>> take a look at this https://docs.djangoproject.com/en/3.0/topics/signals/
>>
>>
>> El lun., 27 ene. 2020 a las 18:59, Stephen J. Butler (<
>> stephen.but...@gmail.com>) escribió:
>>
>>> Frankly, if is_on_sale has such a tight constraint I wouldn't have it as
>>> its own column. Why not just make it an annotated field with an F
>>> expression?
>>>
>>>
>>> https://docs.djangoproject.com/en/3.0/ref/models/expressions/#using-f-with-annotations
>>>
>>> Item.objects.annotate(is_on_sale=(F('price') < F('full_price')))
>>>
>>>
>>>
>>> On Mon, Jan 27, 2020 at 11:47 AM Peter Law  wrote:
>>>
>>>> Hi,
>>>>
>>>> Thanks for adding support for check constraints in Django 2.2, it's
>>>> great to be able to move constraints into the model definitions.
>>>>
>>>> I've been trying to work out how to express a constraint which
>>>> validates that the value of one field expresses a relation between two
>>>> other fields, but can't find a nice way to do so.
>>>>
>>>> I've read through the docs and also found
>>>> https://groups.google.com/d/topic/django-users/6Olh5V1b7Us/discussion,
>>>> but haven't found a concise spelling.
>>>>
>>>> I've got a model like:
>>>>
>>>> ```
>>>> class Item(Model):
>>>> price = DecimalField()
>>>> full_price = DecimalField()
>>>> is_on_sale = BooleanField()
>>>> ```
>>>>
>>>> I'd like to be able to express neatly that the `is_on_sale` boolean be
>>>> true only when `price < full_price`.
>>>> In Postgres I can express this as:
>>>>
>>>> ```
>>>> ALTER TABLE item
>>>> ADD CONSTRAINT is_on_sale_check
>>>> CHECK (is_on_sale = (price < full_price))
>>>> ```
>>>>
>>>> However in Django I can't find a way to express this directly.
>>>>
>>>> I did find a long spelling which essentially checks the True case and
>>>> the False case explicitly and then ORs them together, however it's
>>>> several lines of `models.Q` combinations and not at all clear about
>>>> what the code is trying to achieve.
>>>>
>>>> Is there a concise way to do this sort of constraint? If not, would it
>>>> be possible for Django to add support for it?
>>>>
>>>> Thanks,
>>>> Peter
>>>>
>>>> --
>>>> 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 view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/django-users/CAEMtty7rsf2qk_0qXnzqZdA89e6VRCqF%2B4nQSHgxVCE4XfKAnw%40mail.gmail.com
>>>> .
>>>>
>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAD4ANxWtpqnDr_8WrQiskH7wXxBPyJ3sTWa%2BAsK1592SXWTfpw%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAD4ANxWtpqnDr_8WrQiskH7wXxBPyJ3sTWa%2BAsK1592SXWTfpw%40mail.gmail.com?utm_medium=email_source=footer>
>>> .
>>>
>>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO_yRT2MBbAA5J2GX%2B8%2Bjy-W%3Dirk-XBSQNVD7_AEczWTE2492g%40mail.gmail.com.


Re: How to express `foo = (bar < quox)` as a constraint

2020-01-27 Thread DANIEL URBANO DE LA RUA
take a look at this https://docs.djangoproject.com/en/3.0/topics/signals/


El lun., 27 ene. 2020 a las 18:59, Stephen J. Butler (<
stephen.but...@gmail.com>) escribió:

> Frankly, if is_on_sale has such a tight constraint I wouldn't have it as
> its own column. Why not just make it an annotated field with an F
> expression?
>
>
> https://docs.djangoproject.com/en/3.0/ref/models/expressions/#using-f-with-annotations
>
> Item.objects.annotate(is_on_sale=(F('price') < F('full_price')))
>
>
>
> On Mon, Jan 27, 2020 at 11:47 AM Peter Law  wrote:
>
>> Hi,
>>
>> Thanks for adding support for check constraints in Django 2.2, it's
>> great to be able to move constraints into the model definitions.
>>
>> I've been trying to work out how to express a constraint which
>> validates that the value of one field expresses a relation between two
>> other fields, but can't find a nice way to do so.
>>
>> I've read through the docs and also found
>> https://groups.google.com/d/topic/django-users/6Olh5V1b7Us/discussion,
>> but haven't found a concise spelling.
>>
>> I've got a model like:
>>
>> ```
>> class Item(Model):
>> price = DecimalField()
>> full_price = DecimalField()
>> is_on_sale = BooleanField()
>> ```
>>
>> I'd like to be able to express neatly that the `is_on_sale` boolean be
>> true only when `price < full_price`.
>> In Postgres I can express this as:
>>
>> ```
>> ALTER TABLE item
>> ADD CONSTRAINT is_on_sale_check
>> CHECK (is_on_sale = (price < full_price))
>> ```
>>
>> However in Django I can't find a way to express this directly.
>>
>> I did find a long spelling which essentially checks the True case and
>> the False case explicitly and then ORs them together, however it's
>> several lines of `models.Q` combinations and not at all clear about
>> what the code is trying to achieve.
>>
>> Is there a concise way to do this sort of constraint? If not, would it
>> be possible for Django to add support for it?
>>
>> Thanks,
>> Peter
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAEMtty7rsf2qk_0qXnzqZdA89e6VRCqF%2B4nQSHgxVCE4XfKAnw%40mail.gmail.com
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAD4ANxWtpqnDr_8WrQiskH7wXxBPyJ3sTWa%2BAsK1592SXWTfpw%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO_yRT1F09KXXAJ9e_tdGzxjpy9TBf5B6%3D-Yyzp-Swepybay5w%40mail.gmail.com.


Re: How to express `foo = (bar < quox)` as a constraint

2020-01-27 Thread DANIEL URBANO DE LA RUA
it is goin to be better and less cost for the db

El lun., 27 ene. 2020 a las 19:01, DANIEL URBANO DE LA RUA (<
dannybombas...@gmail.com>) escribió:

> take a look at this https://docs.djangoproject.com/en/3.0/topics/signals/
>
>
> El lun., 27 ene. 2020 a las 18:59, Stephen J. Butler (<
> stephen.but...@gmail.com>) escribió:
>
>> Frankly, if is_on_sale has such a tight constraint I wouldn't have it as
>> its own column. Why not just make it an annotated field with an F
>> expression?
>>
>>
>> https://docs.djangoproject.com/en/3.0/ref/models/expressions/#using-f-with-annotations
>>
>> Item.objects.annotate(is_on_sale=(F('price') < F('full_price')))
>>
>>
>>
>> On Mon, Jan 27, 2020 at 11:47 AM Peter Law  wrote:
>>
>>> Hi,
>>>
>>> Thanks for adding support for check constraints in Django 2.2, it's
>>> great to be able to move constraints into the model definitions.
>>>
>>> I've been trying to work out how to express a constraint which
>>> validates that the value of one field expresses a relation between two
>>> other fields, but can't find a nice way to do so.
>>>
>>> I've read through the docs and also found
>>> https://groups.google.com/d/topic/django-users/6Olh5V1b7Us/discussion,
>>> but haven't found a concise spelling.
>>>
>>> I've got a model like:
>>>
>>> ```
>>> class Item(Model):
>>> price = DecimalField()
>>> full_price = DecimalField()
>>> is_on_sale = BooleanField()
>>> ```
>>>
>>> I'd like to be able to express neatly that the `is_on_sale` boolean be
>>> true only when `price < full_price`.
>>> In Postgres I can express this as:
>>>
>>> ```
>>> ALTER TABLE item
>>> ADD CONSTRAINT is_on_sale_check
>>> CHECK (is_on_sale = (price < full_price))
>>> ```
>>>
>>> However in Django I can't find a way to express this directly.
>>>
>>> I did find a long spelling which essentially checks the True case and
>>> the False case explicitly and then ORs them together, however it's
>>> several lines of `models.Q` combinations and not at all clear about
>>> what the code is trying to achieve.
>>>
>>> Is there a concise way to do this sort of constraint? If not, would it
>>> be possible for Django to add support for it?
>>>
>>> Thanks,
>>> Peter
>>>
>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAEMtty7rsf2qk_0qXnzqZdA89e6VRCqF%2B4nQSHgxVCE4XfKAnw%40mail.gmail.com
>>> .
>>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAD4ANxWtpqnDr_8WrQiskH7wXxBPyJ3sTWa%2BAsK1592SXWTfpw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAD4ANxWtpqnDr_8WrQiskH7wXxBPyJ3sTWa%2BAsK1592SXWTfpw%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO_yRT3RetnT%3De3UU80bSUaiofnzcT7%2Bqbz5COuThcSd0Zt-Bw%40mail.gmail.com.


Re: Separa Fecha y Hora en dos inputs utilizando ModelsForm

2020-01-23 Thread DANIEL URBANO DE LA RUA
https://docs.djangoproject.com/en/3.0/howto/custom-template-tags/
mira bien aqui tu pudes facbicarte uno para separara la hora y la devuelves
a la vista en tiempo de ejecucion osea cuando se renderiza tu pagina creas
un archivo y lo instancias {% tag_template_name  args kwars %} puedes tomar
el string y devover lo que quieras que se renderize


un ujeplo de archivo

from django import template
from django.utils import timezone
from datetime import timedelta, date
register = template.Library()

@register.filter
def to_and(value):
value = str(value)
return value.replace(",",".")



@register.filter
def many_days(value):
today = timezone.localtime()
fecha = value - today
if fecha.days >= 0:
if fecha.days == 0:
fecha = 'Llegan Hoy'
else:
fecha = "Quedan :"+str(fecha.days)+' Dias y '+str(((str(fecha).split(','))[1
].split('.')[0]))+" h/mm"
else:
fecha = value
return fecha


El jue., 23 ene. 2020 a las 21:22, DANIEL URBANO DE LA RUA (<
dannybombas...@gmail.com>) escribió:

> Create un tag template espera te mando doc
>
> On Thu, 23 Jan 2020, 19:38 Tatiana Mesa,  wrote:
>
>> Hola Daniel, gracias por la rápida respuesta
>>
>> Tengo el campo* DateTimeField* que trae la fecha y la hora en el mismo
>> campo. Quiero separarlos solo en la vista del Html. Sin modificar el tipo
>> de dato.
>>
>> Agradezco tu respuesta.
>>
>> El jue., 23 de ene. de 2020 a la(s) 12:27, DANIEL URBANO DE LA RUA (
>> dannybombas...@gmail.com) escribió:
>>
>>>
>>> https://docs.djangoproject.com/en/3.0/ref/forms/fields/#django.forms.TimeField
>>>
>>>
>>> El jue., 23 ene. 2020 a las 18:24, DANIEL URBANO DE LA RUA (<
>>> dannybombas...@gmail.com>) escribió:
>>>
>>>> https://www.geeksforgeeks.org/timefield-django-models/
>>>>
>>>>
>>>> El jue., 23 ene. 2020 a las 18:19, DANIEL URBANO DE LA RUA (<
>>>> dannybombas...@gmail.com>) escribió:
>>>>
>>>>> Tienes date and time field
>>>>>
>>>>> On Thu, 23 Jan 2020, 15:57 Tatiana Mesa, 
>>>>> wrote:
>>>>>
>>>>>> Buenas tardes comunidad,
>>>>>>
>>>>>> He empezado a trabajar con vistas basadas en clases en Django y tengo
>>>>>> una pequeña complicación.
>>>>>>
>>>>>> Quisiera saber de que forma puedo separar un campo *fecha (*
>>>>>> DateTimeField*), *en un input la feha y en otro input la hora en una
>>>>>> vista de *HTML.*
>>>>>>
>>>>>>
>>>>>>
>>>>>> Tengo en mi modelo un campo de *Fecha*
>>>>>> [image: image.png]
>>>>>>  Y tengo un formulario para realizar updates
>>>>>> [image: image.png]
>>>>>>
>>>>>> Les agradezco mucho sus respuestas.
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> 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 view this discussion on the web visit
>>>>>> https://groups.google.com/d/msgid/django-users/CAHAr%3D_3CbZXT9x_NXQ-MJH8U3tJz7JEJj3-JxBuBx_s7JxUwqQ%40mail.gmail.com
>>>>>> <https://groups.google.com/d/msgid/django-users/CAHAr%3D_3CbZXT9x_NXQ-MJH8U3tJz7JEJj3-JxBuBx_s7JxUwqQ%40mail.gmail.com?utm_medium=email_source=footer>
>>>>>> .
>>>>>>
>>>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAO_yRT3twv2oPWkp_hRjsm4K433QFj_U6w%2B5-fqjytNBNOSdgw%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAO_yRT3twv2oPWkp_hRjsm4K433QFj_U6w%2B5-fqjytNBNOSdgw%40mail.gmail.com?utm_medium=email_source=footer>
>>> .
>>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAHAr%3D_2OBLQmNVD9pMaXtBor_1U7FZh8%3DgOXUenPLoCyxH1fuw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAHAr%3D_2OBLQmNVD9pMaXtBor_1U7FZh8%3DgOXUenPLoCyxH1fuw%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO_yRT2Q69rsFhLCBduVZkf%2BfMjmBXAGJG9Ju6NHGcjoLGxGfQ%40mail.gmail.com.


Re: Separa Fecha y Hora en dos inputs utilizando ModelsForm

2020-01-23 Thread DANIEL URBANO DE LA RUA
Create un tag template espera te mando doc

On Thu, 23 Jan 2020, 19:38 Tatiana Mesa,  wrote:

> Hola Daniel, gracias por la rápida respuesta
>
> Tengo el campo* DateTimeField* que trae la fecha y la hora en el mismo
> campo. Quiero separarlos solo en la vista del Html. Sin modificar el tipo
> de dato.
>
> Agradezco tu respuesta.
>
> El jue., 23 de ene. de 2020 a la(s) 12:27, DANIEL URBANO DE LA RUA (
> dannybombas...@gmail.com) escribió:
>
>>
>> https://docs.djangoproject.com/en/3.0/ref/forms/fields/#django.forms.TimeField
>>
>>
>> El jue., 23 ene. 2020 a las 18:24, DANIEL URBANO DE LA RUA (<
>> dannybombas...@gmail.com>) escribió:
>>
>>> https://www.geeksforgeeks.org/timefield-django-models/
>>>
>>>
>>> El jue., 23 ene. 2020 a las 18:19, DANIEL URBANO DE LA RUA (<
>>> dannybombas...@gmail.com>) escribió:
>>>
>>>> Tienes date and time field
>>>>
>>>> On Thu, 23 Jan 2020, 15:57 Tatiana Mesa, 
>>>> wrote:
>>>>
>>>>> Buenas tardes comunidad,
>>>>>
>>>>> He empezado a trabajar con vistas basadas en clases en Django y tengo
>>>>> una pequeña complicación.
>>>>>
>>>>> Quisiera saber de que forma puedo separar un campo *fecha (*
>>>>> DateTimeField*), *en un input la feha y en otro input la hora en una
>>>>> vista de *HTML.*
>>>>>
>>>>>
>>>>>
>>>>> Tengo en mi modelo un campo de *Fecha*
>>>>> [image: image.png]
>>>>>  Y tengo un formulario para realizar updates
>>>>> [image: image.png]
>>>>>
>>>>> Les agradezco mucho sus respuestas.
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> 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 view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/django-users/CAHAr%3D_3CbZXT9x_NXQ-MJH8U3tJz7JEJj3-JxBuBx_s7JxUwqQ%40mail.gmail.com
>>>>> <https://groups.google.com/d/msgid/django-users/CAHAr%3D_3CbZXT9x_NXQ-MJH8U3tJz7JEJj3-JxBuBx_s7JxUwqQ%40mail.gmail.com?utm_medium=email_source=footer>
>>>>> .
>>>>>
>>>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAO_yRT3twv2oPWkp_hRjsm4K433QFj_U6w%2B5-fqjytNBNOSdgw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAO_yRT3twv2oPWkp_hRjsm4K433QFj_U6w%2B5-fqjytNBNOSdgw%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAHAr%3D_2OBLQmNVD9pMaXtBor_1U7FZh8%3DgOXUenPLoCyxH1fuw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAHAr%3D_2OBLQmNVD9pMaXtBor_1U7FZh8%3DgOXUenPLoCyxH1fuw%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO_yRT2XwbGOpQasLJH5MDCNPuyeY2ozKgLC57vOGK1nzfcMgA%40mail.gmail.com.


Re: Separa Fecha y Hora en dos inputs utilizando ModelsForm

2020-01-23 Thread DANIEL URBANO DE LA RUA
https://docs.djangoproject.com/en/3.0/ref/forms/fields/#django.forms.TimeField


El jue., 23 ene. 2020 a las 18:24, DANIEL URBANO DE LA RUA (<
dannybombas...@gmail.com>) escribió:

> https://www.geeksforgeeks.org/timefield-django-models/
>
>
> El jue., 23 ene. 2020 a las 18:19, DANIEL URBANO DE LA RUA (<
> dannybombas...@gmail.com>) escribió:
>
>> Tienes date and time field
>>
>> On Thu, 23 Jan 2020, 15:57 Tatiana Mesa, 
>> wrote:
>>
>>> Buenas tardes comunidad,
>>>
>>> He empezado a trabajar con vistas basadas en clases en Django y tengo
>>> una pequeña complicación.
>>>
>>> Quisiera saber de que forma puedo separar un campo *fecha (*
>>> DateTimeField*), *en un input la feha y en otro input la hora en una
>>> vista de *HTML.*
>>>
>>>
>>>
>>> Tengo en mi modelo un campo de *Fecha*
>>> [image: image.png]
>>>  Y tengo un formulario para realizar updates
>>> [image: image.png]
>>>
>>> Les agradezco mucho sus respuestas.
>>>
>>>
>>>
>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAHAr%3D_3CbZXT9x_NXQ-MJH8U3tJz7JEJj3-JxBuBx_s7JxUwqQ%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAHAr%3D_3CbZXT9x_NXQ-MJH8U3tJz7JEJj3-JxBuBx_s7JxUwqQ%40mail.gmail.com?utm_medium=email_source=footer>
>>> .
>>>
>>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO_yRT3twv2oPWkp_hRjsm4K433QFj_U6w%2B5-fqjytNBNOSdgw%40mail.gmail.com.


Re: Separa Fecha y Hora en dos inputs utilizando ModelsForm

2020-01-23 Thread DANIEL URBANO DE LA RUA
https://www.geeksforgeeks.org/timefield-django-models/


El jue., 23 ene. 2020 a las 18:19, DANIEL URBANO DE LA RUA (<
dannybombas...@gmail.com>) escribió:

> Tienes date and time field
>
> On Thu, 23 Jan 2020, 15:57 Tatiana Mesa,  wrote:
>
>> Buenas tardes comunidad,
>>
>> He empezado a trabajar con vistas basadas en clases en Django y tengo una
>> pequeña complicación.
>>
>> Quisiera saber de que forma puedo separar un campo *fecha (*DateTimeField*),
>> *en un input la feha y en otro input la hora en una vista de *HTML.*
>>
>>
>>
>> Tengo en mi modelo un campo de *Fecha*
>> [image: image.png]
>>  Y tengo un formulario para realizar updates
>> [image: image.png]
>>
>> Les agradezco mucho sus respuestas.
>>
>>
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAHAr%3D_3CbZXT9x_NXQ-MJH8U3tJz7JEJj3-JxBuBx_s7JxUwqQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAHAr%3D_3CbZXT9x_NXQ-MJH8U3tJz7JEJj3-JxBuBx_s7JxUwqQ%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO_yRT1ba6VH4-ASk%3D05Y8Q9S%2BJA8qf%2BQ4wK7M3gUaedANYmGw%40mail.gmail.com.


Re: Separa Fecha y Hora en dos inputs utilizando ModelsForm

2020-01-23 Thread DANIEL URBANO DE LA RUA
Tienes date and time field

On Thu, 23 Jan 2020, 15:57 Tatiana Mesa,  wrote:

> Buenas tardes comunidad,
>
> He empezado a trabajar con vistas basadas en clases en Django y tengo una
> pequeña complicación.
>
> Quisiera saber de que forma puedo separar un campo *fecha (*DateTimeField*),
> *en un input la feha y en otro input la hora en una vista de *HTML.*
>
>
>
> Tengo en mi modelo un campo de *Fecha*
> [image: image.png]
>  Y tengo un formulario para realizar updates
> [image: image.png]
>
> Les agradezco mucho sus respuestas.
>
>
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAHAr%3D_3CbZXT9x_NXQ-MJH8U3tJz7JEJj3-JxBuBx_s7JxUwqQ%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO_yRT2O4ozQmu2btL4xHO04cKZDXzMWePhinx4D8EhA_eO_ew%40mail.gmail.com.


Re: How to do SEO for my django website

2020-01-03 Thread DANIEL URBANO DE LA RUA
here you have a good example to what to use and how
https://github.com/mirumee/saleor

El vie., 3 ene. 2020 a las 13:42, Yash Garg ()
escribió:

> Is there any package or module available for SEO of django website ?
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/1869ef27-3269-41bc-a0e3-c79652863eec%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO_yRT0OKto73zkeCcyokqKaPQLQ47Ci7qy_qvKi3b-2j4iXfQ%40mail.gmail.com.


Re: How to do SEO for my django website

2020-01-03 Thread DANIEL URBANO DE LA RUA
https://github.com/mirumee/saleor
here you have a good example how an what to use to do the SEO

El vie., 3 ene. 2020 a las 13:48, sagar ninave ()
escribió:

> https://www.bedjango.com/blog/4-tips-position-your-website-using-django/
>
> On Fri, Jan 3, 2020 at 6:19 PM sagar ninave  wrote:
>
>> https://django-seo.readthedocs.io/en/latest/introduction/tutorial.html
>>
>>
>> On Fri, Jan 3, 2020 at 6:11 PM Yash Garg  wrote:
>>
>>> Is there any package or module available for SEO of django website ?
>>>
>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/1869ef27-3269-41bc-a0e3-c79652863eec%40googlegroups.com
>>> 
>>> .
>>>
>>
>>
>> --
>>
>> 
>> sagar ninave
>> about.me/sagarninave
>> 
>>
>
>
> --
>
> 
> sagar ninave
> about.me/sagarninave
> 
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAA6pdZ_jU91eqkF5FG956%2B%2BoY838LyZUrhZWO-n71MZGA0%2BqDQ%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO_yRT28xsb2ib6WZNfcxQhBu2YXya%2B1WOvxmEs%2B6VcDXj0kMg%40mail.gmail.com.


Re: Renaming sequences

2019-12-18 Thread DANIEL URBANO DE LA RUA
Why you did taht on production and not to try before recreate the db in
other place

On Wed, 18 Dec 2019, 20:59 Michael MacIntosh, 
wrote:

> Hey Mike,
>
> I'm not sure about your specific setup, but I assume you are using the
> django.contrib.auth user model and are moving it over to your own app,
> and you have your own userprofile model that links to it.  The user
> model in django.contrib.auth is a swappable model.  Basically meaning as
> long as it inherits from a base class (I believe BaseUser) and you
> configure your settings (AUTH_USER_MODEL) to look at it, you should be
> fine, as long as you get the user model via get_user_model.
>
> A link to the documentation on this
>
> https://docs.djangoproject.com/en/3.0/topics/auth/customizing/#referencing-the-user-model
>
> The next section also goes into defining a custom user model.
>
> But in short there should be no ill-effects if you do everything right .
>
> Also if you are moving your own user model into your own app, I would
> recommend naming it something other than common, something containing
> auth, like "catapp_auth" so it is clear that your user models and any
> custom authorization / authentication happens in there.
>
> Hope that helps!
>
> Cheers,
> Michael.
>
> On 12/17/2019 10:26 PM, Mike Dewhirst wrote:
> > Are there any consequences for renaming sequences to match the tables
> > which own them?
> >
> > In an existing production Django project I have just converted
> > auth.user into common.user and company.userprofile into
> > common.userprofile.
> >
> > Having gone through the migration process more or less unscathed the
> > original sequences are owned by the renamed tables. Eg
> > public.auth_user_id_seq is owned by public.common_user.id
> >
> > Everything seems to work fine but my unit tests are playing up and
> > error messages are showing the original (and still correct) sequence
> > names. It would make much visual sense to me now and especially to the
> > future me (or anyone else) if the sequences were renamed as well.
> >
> > I know how I could do it but I just need to know if I should.
> >
> > Thanks for any advice
> >
> > Mike
> >
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/386eb4f4-6229-331f-05a5-c47d168db1fd%40linear-systems.com
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO_yRT2%3DGRDm-75XnVT%3DDs9Na3DtZMTVaMzQc9EHFv1VpeaUKQ%40mail.gmail.com.


Re: migration error

2019-12-12 Thread DANIEL URBANO DE LA RUA
ok good that sound good that is what it matter :)

El jue., 12 dic. 2019 a las 21:35, Leó Horváth ()
escribió:

> hey, thanks i solved it the problem was very trivial, thank you for your
> help anyway!!
>
> Leó Horváth  ezt írta (időpont: 2019. dec.
> 12., Cs, 20:13):
>
>> Still the same, it didnt help sadly :(
>>
>>
>> DANIEL URBANO DE LA RUA  ezt írta (időpont:
>> 2019. dec. 12., Cs, 20:10):
>>
>>> if your are using sqlite db and is empty delete it and remake migrations
>>>
>>> El jue., 12 dic. 2019 a las 18:54, Leó Horváth (<
>>> horvath.leo2...@gmail.com>) escribió:
>>>
>>>> Hi guys!
>>>>
>>>> When I Try to make a migration my console says the following:
>>>> "ValueError: Related model 'database_manager.Name' cannot be resolved"
>>>>
>>>> however, "database_manager" does not exist anymore, I renamed it to
>>>> "database".
>>>>
>>>> this is my project repo if it helps:
>>>> https://github.com/leocsi/salesgrade
>>>>
>>>> Thanks a lot,
>>>>
>>>> Leó
>>>>
>>>> --
>>>> 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 view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/django-users/CAJBcW0xHE%2BmH3wZxCyG421sa9izE8jAzicJzLCA9-9r69jfRpA%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/django-users/CAJBcW0xHE%2BmH3wZxCyG421sa9izE8jAzicJzLCA9-9r69jfRpA%40mail.gmail.com?utm_medium=email_source=footer>
>>>> .
>>>>
>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAO_yRT3NO-jRQDrg6f5iAzE8GEtfqBHE04Fu3PP4-E-yenHV4g%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAO_yRT3NO-jRQDrg6f5iAzE8GEtfqBHE04Fu3PP4-E-yenHV4g%40mail.gmail.com?utm_medium=email_source=footer>
>>> .
>>>
>> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAJBcW0y7EJxPdcfPJ%2BPM64FmLsuuBCOWqb0fWGkbQ4im3wYvUw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAJBcW0y7EJxPdcfPJ%2BPM64FmLsuuBCOWqb0fWGkbQ4im3wYvUw%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO_yRT3Drob8TAxoz0HCRT5xDMnuZbJ2huL_k04DJcasESVVrg%40mail.gmail.com.


Re: migration error

2019-12-12 Thread DANIEL URBANO DE LA RUA
what still the same, what you did. what you did not be more explicit

El jue., 12 dic. 2019 a las 20:15, Leó Horváth ()
escribió:

> Still the same, it didnt help sadly :(
>
>
> DANIEL URBANO DE LA RUA  ezt írta (időpont:
> 2019. dec. 12., Cs, 20:10):
>
>> if your are using sqlite db and is empty delete it and remake migrations
>>
>> El jue., 12 dic. 2019 a las 18:54, Leó Horváth (<
>> horvath.leo2...@gmail.com>) escribió:
>>
>>> Hi guys!
>>>
>>> When I Try to make a migration my console says the following:
>>> "ValueError: Related model 'database_manager.Name' cannot be resolved"
>>>
>>> however, "database_manager" does not exist anymore, I renamed it to
>>> "database".
>>>
>>> this is my project repo if it helps:
>>> https://github.com/leocsi/salesgrade
>>>
>>> Thanks a lot,
>>>
>>> Leó
>>>
>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAJBcW0xHE%2BmH3wZxCyG421sa9izE8jAzicJzLCA9-9r69jfRpA%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAJBcW0xHE%2BmH3wZxCyG421sa9izE8jAzicJzLCA9-9r69jfRpA%40mail.gmail.com?utm_medium=email_source=footer>
>>> .
>>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAO_yRT3NO-jRQDrg6f5iAzE8GEtfqBHE04Fu3PP4-E-yenHV4g%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAO_yRT3NO-jRQDrg6f5iAzE8GEtfqBHE04Fu3PP4-E-yenHV4g%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAJBcW0y80-t9DC70nuxtTm1%2BmXf2Wb11s3JOtZPySiGN_KS59g%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAJBcW0y80-t9DC70nuxtTm1%2BmXf2Wb11s3JOtZPySiGN_KS59g%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO_yRT1XsGRC--6zcw7BO3BoTZHMU1mm4xpFRxmkZY%2BwhTSgkw%40mail.gmail.com.


Re: migration error

2019-12-12 Thread DANIEL URBANO DE LA RUA
if no
https://docs.djangoproject.com/en/3.0/topics/migrations/#django.db.migrations.Migration.initial

or
https://simpleisbetterthancomplex.com/tutorial/2016/07/26/how-to-reset-migrations.html
all this choices you have

El jue., 12 dic. 2019 a las 20:10, DANIEL URBANO DE LA RUA (<
dannybombas...@gmail.com>) escribió:

> if your are using sqlite db and is empty delete it and remake migrations
>
> El jue., 12 dic. 2019 a las 18:54, Leó Horváth ()
> escribió:
>
>> Hi guys!
>>
>> When I Try to make a migration my console says the following:
>> "ValueError: Related model 'database_manager.Name' cannot be resolved"
>>
>> however, "database_manager" does not exist anymore, I renamed it to
>> "database".
>>
>> this is my project repo if it helps:
>> https://github.com/leocsi/salesgrade
>>
>> Thanks a lot,
>>
>> Leó
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAJBcW0xHE%2BmH3wZxCyG421sa9izE8jAzicJzLCA9-9r69jfRpA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAJBcW0xHE%2BmH3wZxCyG421sa9izE8jAzicJzLCA9-9r69jfRpA%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO_yRT02mFbobDQBjQRrr0LH2t%2BzbU9Jp%2BTqiB3q6i2ofS5REw%40mail.gmail.com.


Re: migration error

2019-12-12 Thread DANIEL URBANO DE LA RUA
if your are using sqlite db and is empty delete it and remake migrations

El jue., 12 dic. 2019 a las 18:54, Leó Horváth ()
escribió:

> Hi guys!
>
> When I Try to make a migration my console says the following:
> "ValueError: Related model 'database_manager.Name' cannot be resolved"
>
> however, "database_manager" does not exist anymore, I renamed it to
> "database".
>
> this is my project repo if it helps:
> https://github.com/leocsi/salesgrade
>
> Thanks a lot,
>
> Leó
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAJBcW0xHE%2BmH3wZxCyG421sa9izE8jAzicJzLCA9-9r69jfRpA%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO_yRT3NO-jRQDrg6f5iAzE8GEtfqBHE04Fu3PP4-E-yenHV4g%40mail.gmail.com.


Re: weird memory error on Centos7

2019-12-05 Thread DANIEL URBANO DE LA RUA
In your case use yum to get thoses package

On Fri, 6 Dec 2019, 00:12 DANIEL URBANO DE LA RUA, 
wrote:

> Try installing apt-ger install binutils libproj-dev gdal-bin
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/4dbbcc62-4758-4c7b-a016-62c7eeae0a72%40googlegroups.com
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO_yRT01mgR5wzFsHH2iTBSm2qTV7DFJyp7qKXzjrG3Piz_fdQ%40mail.gmail.com.


weird memory error on Centos7

2019-12-05 Thread DANIEL URBANO DE LA RUA
Try installing apt-ger install binutils libproj-dev gdal-bin

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/4dbbcc62-4758-4c7b-a016-62c7eeae0a72%40googlegroups.com.


Re: weird memory error on Centos7

2019-12-05 Thread DANIEL URBANO DE LA RUA
Try installing apt-ger install binutils libproj-dev gdal-bin

On Fri, 6 Dec 2019, 00:01 Fernando González Cisneros, <
hellhammerh...@gmail.com> wrote:

> Hello, having some trouble here.
>
> I'm developing an app using the postgis backend in django, i'm releasing
> it using an apache server on Centos 7, i'm using mod_wsgi for python 3.6
> and i've already published a test "hello world" app without trouble,
> however when i try to publish my app a 500 internal error, when i check the
> error log the next text appears:
>
> mod_wsgi (pid=26812): Target WSGI script
> '/var/www/html/simulacros/simulacros/wsgi.py' cannot be loaded as Python
> module.
>  mod_wsgi (pid=26812): Exception occurred processing WSGI script
> '/var/www/html/simulacros/simulacros/wsgi.py'.
>  Traceback (most recent call last):
>   File "/var/www/html/simulacros/simulacros/wsgi.py", line 16, in 
>  application = get_wsgi_application()
>   File
> "/var/www/html/simulacros/app/lib64/python3.6/site-packages/django/core/wsgi.py",
> line 12, in get_wsgi_application
>  django.setup(set_prefix=False)
>   File
> "/var/www/html/simulacros/app/lib64/python3.6/site-packages/django/__init__.py",
> line 24, in setup
> apps.populate(settings.INSTALLED_APPS)
>File
> "/var/www/html/simulacros/app/lib64/python3.6/site-packages/django/apps/registry.py",
> line 114, in populate
> app_config.import_models()
>   File
> "/var/www/html/simulacros/app/lib64/python3.6/site-packages/django/apps/config.py",
> line 211, in import_models
> self.models_module = import_module(models_module_name)
>File
> "/opt/rh/rh-python36/root/usr/lib64/python3.6/importlib/__init__.py", line
> 126, in import_module
>return _bootstrap._gcd_import(name[level:], package, level)
>   File "", line 994, in _gcd_import
>   File "", line 971, in _find_and_load
>  File "", line 955, in _find_and_load_unlocked
>File "", line 665, in _load_unlocked
>   File "", line 678, in exec_module
>  File "", line 219, in
> _call_with_frames_removed
>File "/var/www/html/simulacros/proyecto/models.py", line 1, in 
> from django.contrib.gis.db import models
>   File
> "/var/www/html/simulacros/app/lib64/python3.6/site-packages/django/contrib/gis/db/models/__init__.py",
> line 3, in 
> import django.contrib.gis.db.models.functions  # NOQA
>  File
> "/var/www/html/simulacros/app/lib64/python3.6/site-packages/django/contrib/gis/db/models/functions.py",
> line 4, in 
>  from django.contrib.gis.db.models.fields import BaseSpatialField,
> GeometryField
>   File
> "/var/www/html/simulacros/app/lib64/python3.6/site-packages/django/contrib/gis/db/models/fields.py",
> line 3, in 
>from django.contrib.gis import forms, gdal
>File
> "/var/www/html/simulacros/app/lib64/python3.6/site-packages/django/contrib/gis/forms/__init__.py",
> line 3, in 
>  from .fields import (  # NOQA
>File
> "/var/www/html/simulacros/app/lib64/python3.6/site-packages/django/contrib/gis/forms/fields.py",
> line 2, in 
>  from django.contrib.gis.gdal import GDALException
>  File
> "/var/www/html/simulacros/app/lib64/python3.6/site-packages/django/contrib/gis/gdal/__init__.py",
> line 28, in 
>  from django.contrib.gis.gdal.datasource import DataSource
>   File
> "/var/www/html/simulacros/app/lib64/python3.6/site-packages/django/contrib/gis/gdal/datasource.py",
> line 39, in 
> from django.contrib.gis.gdal.driver import Driver
>   File
> "/var/www/html/simulacros/app/lib64/python3.6/site-packages/django/contrib/gis/gdal/driver.py",
> line 5, in 
>  from django.contrib.gis.gdal.prototypes import ds as vcapi, raster as
> rcapi
>  File
> "/var/www/html/simulacros/app/lib64/python3.6/site-packages/django/contrib/gis/gdal/prototypes/ds.py",
> line 9, in 
>  from django.contrib.gis.gdal.libgdal import GDAL_VERSION, lgdal
>   File
> "/var/www/html/simulacros/app/lib64/python3.6/site-packages/django/contrib/gis/gdal/libgdal.py",
> line 113, in 
>err_handler = CPLErrorHandler(err_handler)
>  MemoryError
>
> I know "MemoryError" is self-explanatory however when i asked the system
> administrator if there was a memory problem he informed me there wasn't
> any. This leaves me wondering where can i be wrong.
>
> In case someone asks here's my wsgi.conf file:
>
>
> Alias /static /var/www/html/simulacros/static
> 
> Options FollowSymLinks
> AllowOverride None
> Require all granted
> 
> WSGIDaemonProcess simulacros python-home=/var/www/html/simulacros/app
> python-path=/var/www/html/simulacros
> WSGIProcessGroup simulacros
> WSGIScriptAlias /simulacros /var/www/html/simulacros/simulacros/wsgi.py
> process-group=simulacros
> 
> 
> Require all granted
> 
> 
>
>
> Thanks for your attention!
>
> --
> 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 view this discussion on the web visit
> 

what tool will be using for Continues integration in python projects??

2019-12-04 Thread DANIEL URBANO DE LA RUA
You can use jenkins with whatever language you use

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/ac939c48-a145-4d55-9a26-443151275676%40googlegroups.com.


what tool will be using for Continues integration in python projects??

2019-12-04 Thread DANIEL URBANO DE LA RUA
You can use jenkins with whatever language you use

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/2f2e5c78-509e-4a2e-8c61-7b10edb4c08a%40googlegroups.com.


Re: what tool will be using for Continues integration in python projects??

2019-12-04 Thread DANIEL URBANO DE LA RUA
You can use jenkins with whatever language you use

On Wed, 4 Dec 2019, 18:36 DANIEL URBANO DE LA RUA, 
wrote:

> Jenkins
>
> On Wed, 4 Dec 2019, 17:54 Manjunatha C, 
> wrote:
>
>> Jenkins are using for CI in java projects. what tool will be using for
>> python projects to Continues integration??
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/6a7d7fa6-09e2-4227-b5e6-a1800a643470%40googlegroups.com
>> .
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO_yRT2UDkR8Bp14ETv-SOVqNwXOS_L%3DuFk%3DFAch044_%2B95PYw%40mail.gmail.com.


Re: what tool will be using for Continues integration in python projects??

2019-12-04 Thread DANIEL URBANO DE LA RUA
Jenkins

On Wed, 4 Dec 2019, 17:54 Manjunatha C,  wrote:

> Jenkins are using for CI in java projects. what tool will be using for
> python projects to Continues integration??
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/6a7d7fa6-09e2-4227-b5e6-a1800a643470%40googlegroups.com
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO_yRT3W3jhbscz_psqTmnZGnsm1RSjma_J5wiz-vkkUsh%2B75Q%40mail.gmail.com.


Re: django passing a parameter for a view in a url produces Error: Circuitinfotable matching query does not exist.

2019-11-15 Thread DANIEL URBANO DE LA RUA
Nice but i am always with nginx and i dont know if it has the same problem
or not

On Fri, 15 Nov 2019, 18:02 Patrick Carra,  wrote:

> In case anyone is interested I fixed this with some simple regex in my
> view.  I identified the patterns for which apache was removing the // and
> replacing with a single / and then wrote some rules around that and
> replaced the single / with the // before passing it to my query.
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/2752a54f-4bdc-4781-b8ba-a842ffcb1a36%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO_yRT0DwkcXvukvRWmhOyV5km%3Dn75d7Ssg_UakUktQCGDggdA%40mail.gmail.com.


Re: django passing a parameter for a view in a url produces Error: Circuitinfotable matching query does not exist.

2019-11-14 Thread DANIEL URBANO DE LA RUA
Or send it as a post and finish your problem

On Thu, 14 Nov 2019, 21:59 DANIEL URBANO DE LA RUA, <
dannybombas...@gmail.com> wrote:

> Yes at the moment because is all related to the slash character
>
> On Thu, 14 Nov 2019, 21:57 Patrick Carra,  wrote:
>
>> Yea I think what I may have to do is write some regex in the template to
>> catch anytime there is a // and convert it to something that won't
>> interfere with the apache/mod_wsgi due to the url and then when I pass it
>> back into my view convert it back to the original in order to perform the
>> query and get the correct response.
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/fa54b31d-c8b6-4900-93d7-e03d8f7ab6c6%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/fa54b31d-c8b6-4900-93d7-e03d8f7ab6c6%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO_yRT0DqfjcA4PNNRACcAVGc7FRitRXeTZJOTRnMdyvUy%3DOSw%40mail.gmail.com.


Re: django passing a parameter for a view in a url produces Error: Circuitinfotable matching query does not exist.

2019-11-14 Thread DANIEL URBANO DE LA RUA
Yes at the moment because is all related to the slash character

On Thu, 14 Nov 2019, 21:57 Patrick Carra,  wrote:

> Yea I think what I may have to do is write some regex in the template to
> catch anytime there is a // and convert it to something that won't
> interfere with the apache/mod_wsgi due to the url and then when I pass it
> back into my view convert it back to the original in order to perform the
> query and get the correct response.
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/fa54b31d-c8b6-4900-93d7-e03d8f7ab6c6%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO_yRT2mpsCdsWLTaRbPq%3D0WFqMq96ur8SMYBTtHKHVXNHsaQg%40mail.gmail.com.


Re: django passing a parameter for a view in a url produces Error: Circuitinfotable matching query does not exist.

2019-11-14 Thread DANIEL URBANO DE LA RUA
>>> r.encoding
'utf-8'
>>> r.encoding = 'ISO-8859-1'

r is your request use different encoding

El jue., 14 nov. 2019 a las 21:29, DANIEL URBANO DE LA RUA (<
dannybombas...@gmail.com>) escribió:

> https://www.webforefront.com/django/regexpdjangourls.html?
> is maybe something related to your url pattern i don't know but something
> is wrong because is not working  or did you found a solutions?
>
> El jue., 14 nov. 2019 a las 21:21, DANIEL URBANO DE LA RUA (<
> dannybombas...@gmail.com>) escribió:
>
>> https://docs.djangoproject.com/en/2.2/_modules/django/utils/html/
>> here you have some tricks to do on your view maybe
>>
>> El jue., 14 nov. 2019 a las 21:18, DANIEL URBANO DE LA RUA (<
>> dannybombas...@gmail.com>) escribió:
>>
>>> the main problem is tha you have especial character in a url and the
>>> codification on an url does this to transport the data and your have to fix
>>> it in the request then
>>> at least tray  using  urllib.parse from python check some where an
>>> example
>>>
>>> El jue., 14 nov. 2019 a las 21:15, Patrick Carra ()
>>> escribió:
>>>
>>>> I think my assumption was wrong stackoverflow is down right now so I
>>>> can't go to the link but it seems like somebody is suggesting this is an
>>>> apache/mod_wsgi error
>>>> https://code.djangoproject.com/ticket/14346
>>>>
>>>> --
>>>> 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 view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/django-users/120e943c-55f6-4971-b80e-64713b095b7b%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/django-users/120e943c-55f6-4971-b80e-64713b095b7b%40googlegroups.com?utm_medium=email_source=footer>
>>>> .
>>>>
>>>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO_yRT0whr2_5NYzNWjBs0g%2BX%3DS2G5YJ2YdO49x-nWwVTF%2BU9w%40mail.gmail.com.


Re: django passing a parameter for a view in a url produces Error: Circuitinfotable matching query does not exist.

2019-11-14 Thread DANIEL URBANO DE LA RUA
https://www.webforefront.com/django/regexpdjangourls.html?
is maybe something related to your url pattern i don't know but something
is wrong because is not working  or did you found a solutions?

El jue., 14 nov. 2019 a las 21:21, DANIEL URBANO DE LA RUA (<
dannybombas...@gmail.com>) escribió:

> https://docs.djangoproject.com/en/2.2/_modules/django/utils/html/
> here you have some tricks to do on your view maybe
>
> El jue., 14 nov. 2019 a las 21:18, DANIEL URBANO DE LA RUA (<
> dannybombas...@gmail.com>) escribió:
>
>> the main problem is tha you have especial character in a url and the
>> codification on an url does this to transport the data and your have to fix
>> it in the request then
>> at least tray  using  urllib.parse from python check some where an
>> example
>>
>> El jue., 14 nov. 2019 a las 21:15, Patrick Carra ()
>> escribió:
>>
>>> I think my assumption was wrong stackoverflow is down right now so I
>>> can't go to the link but it seems like somebody is suggesting this is an
>>> apache/mod_wsgi error
>>> https://code.djangoproject.com/ticket/14346
>>>
>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/120e943c-55f6-4971-b80e-64713b095b7b%40googlegroups.com
>>> <https://groups.google.com/d/msgid/django-users/120e943c-55f6-4971-b80e-64713b095b7b%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>>
>>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO_yRT10%3D4HMYbOSgELAHukc3FdMCDmqfK3df7tYHd9osDK3fg%40mail.gmail.com.


Re: django passing a parameter for a view in a url produces Error: Circuitinfotable matching query does not exist.

2019-11-14 Thread DANIEL URBANO DE LA RUA
https://docs.djangoproject.com/en/2.2/_modules/django/utils/html/
here you have some tricks to do on your view maybe

El jue., 14 nov. 2019 a las 21:18, DANIEL URBANO DE LA RUA (<
dannybombas...@gmail.com>) escribió:

> the main problem is tha you have especial character in a url and the
> codification on an url does this to transport the data and your have to fix
> it in the request then
> at least tray  using  urllib.parse from python check some where an example
>
> El jue., 14 nov. 2019 a las 21:15, Patrick Carra ()
> escribió:
>
>> I think my assumption was wrong stackoverflow is down right now so I
>> can't go to the link but it seems like somebody is suggesting this is an
>> apache/mod_wsgi error
>> https://code.djangoproject.com/ticket/14346
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/120e943c-55f6-4971-b80e-64713b095b7b%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/120e943c-55f6-4971-b80e-64713b095b7b%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO_yRT32UdwMet3L74f12PB_QexHk10des%3Dh0%2BRUyh7E0-b8fQ%40mail.gmail.com.


Re: django passing a parameter for a view in a url produces Error: Circuitinfotable matching query does not exist.

2019-11-14 Thread DANIEL URBANO DE LA RUA
the main problem is tha you have especial character in a url and the
codification on an url does this to transport the data and your have to fix
it in the request then
at least tray  using  urllib.parse from python check some where an example

El jue., 14 nov. 2019 a las 21:15, Patrick Carra ()
escribió:

> I think my assumption was wrong stackoverflow is down right now so I can't
> go to the link but it seems like somebody is suggesting this is an
> apache/mod_wsgi error
> https://code.djangoproject.com/ticket/14346
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/120e943c-55f6-4971-b80e-64713b095b7b%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO_yRT2-9%2BynF_BhrorCUaEy1BSkFyuomZ%2BYe514AKS5f6jpkw%40mail.gmail.com.


Re: django passing a parameter for a view in a url produces Error: Circuitinfotable matching query does not exist.

2019-11-14 Thread DANIEL URBANO DE LA RUA
or try to send another unique value it will be easy

El jue., 14 nov. 2019 a las 20:56, DANIEL URBANO DE LA RUA (<
dannybombas...@gmail.com>) escribió:

> or |escape  is the same
>
>
> El jue., 14 nov. 2019 a las 20:55, DANIEL URBANO DE LA RUA (<
> dannybombas...@gmail.com>) escribió:
>
>> {% autoescape on %}
>> {{ post.content }}
>> {% endautoescape %}
>>
>>
>>
>> try this
>>
>> El jue., 14 nov. 2019 a las 20:53, Patrick Carra ()
>> escribió:
>>
>>> There was no change after adding |safe after the value within {{}}
>>> example: >> class="view-item" title="View">View
>>>
>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/e023361a-1544-4095-ab6d-53461996947b%40googlegroups.com
>>> <https://groups.google.com/d/msgid/django-users/e023361a-1544-4095-ab6d-53461996947b%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>>
>>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO_yRT3-QERggMihrU4Mj_-t2JWpq-baLQXa8p-DGsA%2BbXBmdw%40mail.gmail.com.


Re: django passing a parameter for a view in a url produces Error: Circuitinfotable matching query does not exist.

2019-11-14 Thread DANIEL URBANO DE LA RUA
or |escape  is the same


El jue., 14 nov. 2019 a las 20:55, DANIEL URBANO DE LA RUA (<
dannybombas...@gmail.com>) escribió:

> {% autoescape on %}
> {{ post.content }}
> {% endautoescape %}
>
>
>
> try this
>
> El jue., 14 nov. 2019 a las 20:53, Patrick Carra ()
> escribió:
>
>> There was no change after adding |safe after the value within {{}}
>> example: > class="view-item" title="View">View
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/e023361a-1544-4095-ab6d-53461996947b%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/e023361a-1544-4095-ab6d-53461996947b%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO_yRT26rM1QBuy1JLssfZjfRaUwA%2B6s5GynGv%2BG6fa-PDoXqQ%40mail.gmail.com.


Re: django passing a parameter for a view in a url produces Error: Circuitinfotable matching query does not exist.

2019-11-14 Thread DANIEL URBANO DE LA RUA
{% autoescape on %}
{{ post.content }}
{% endautoescape %}



try this

El jue., 14 nov. 2019 a las 20:53, Patrick Carra ()
escribió:

> There was no change after adding |safe after the value within {{}}
> example:  class="view-item" title="View">View
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/e023361a-1544-4095-ab6d-53461996947b%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO_yRT3qk8Qdf%3DBPbdfjPR92Gaj9E9i1nnOT-kOrpZiPH2OZpw%40mail.gmail.com.


Re: django passing a parameter for a view in a url produces Error: Circuitinfotable matching query does not exist.

2019-11-14 Thread DANIEL URBANO DE LA RUA
then use |safe template tag from django

El jue., 14 nov. 2019 a las 20:44, Patrick Carra ()
escribió:

> and the actual value is OQYX/173774//ZYO but Django is interpreting it as
> OQYX/173774/ZYO/
>
> On Thursday, November 14, 2019 at 1:41:35 PM UTC-6, Patrick Carra wrote:
>>
>> That is a value from the table in models called Circuitinfotable and the
>> field it is pulled from is called circuitid.
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/55203f72-f8fb-48d9-8ace-09aa652e1721%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO_yRT3UcuSXinaFnJZ-5sBoF5mK2xYtiV_EaV%3Dm7ALPg63_Aw%40mail.gmail.com.


Re: django passing a parameter for a view in a url produces Error: Circuitinfotable matching query does not exist.

2019-11-14 Thread DANIEL URBANO DE LA RUA
) escribió:

> then use |safe template tag from django
>
> El jue., 14 nov. 2019 a las 20:44, Patrick Carra ()
> escribió:
>
>> and the actual value is OQYX/173774//ZYO but Django is interpreting it
>> as OQYX/173774/ZYO/
>>
>> On Thursday, November 14, 2019 at 1:41:35 PM UTC-6, Patrick Carra wrote:
>>>
>>> That is a value from the table in models called Circuitinfotable and the
>>> field it is pulled from is called circuitid.
>>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/55203f72-f8fb-48d9-8ace-09aa652e1721%40googlegroups.com
>> 
>> .
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO_yRT0BHeRR57qBt-6LdvRkK14QT%2B5qwHEtGSvyG2UX6nj6hg%40mail.gmail.com.


Re: django passing a parameter for a view in a url produces Error: Circuitinfotable matching query does not exist.

2019-11-14 Thread DANIEL URBANO DE LA RUA
is this your id  OQYX/173774/ZYO/ i mean the if from your model?

El jue., 14 nov. 2019 a las 20:33, DANIEL URBANO DE LA RUA (<
dannybombas...@gmail.com>) escribió:

> mmm sorry you are pasing the id you dont have any weird character let me
> see
>
> El jue., 14 nov. 2019 a las 20:28, DANIEL URBANO DE LA RUA (<
> dannybombas...@gmail.com>) escribió:
>
>> ok i didn't see your app name is viewList sorry uset templatetag to scape
>> weird character because you are using url encoding
>>
>> El jue., 14 nov. 2019 a las 20:26, DANIEL URBANO DE LA RUA (<
>> dannybombas...@gmail.com>) escribió:
>>
>>> then use the templatetag |safe
>>>
>>> El jue., 14 nov. 2019 a las 18:05, DANIEL URBANO DE LA RUA (<
>>> dannybombas...@gmail.com>) escribió:
>>>
>>>> a href="/viewLit/{{ circuit.circuitid }}" t
>>>>
>>>> and in your urls.py
>>>>
>>>>  path(r'/', views.viewLit, name='viewLit'),
>>>>
>>>> El jue., 14 nov. 2019 a las 18:04, DANIEL URBANO DE LA RUA (<
>>>> dannybombas...@gmail.com>) escribió:
>>>>
>>>>> check on your a link you are including vieset/ and there is not on
>>>>> your url
>>>>>
>>>>> El jue., 14 nov. 2019 a las 17:17, Integr@te System (<
>>>>> datacentral...@gmail.com>) escribió:
>>>>>
>>>>>> Hi Informer,
>>>>>> check you model Circuitinfotable,
>>>>>> Method call must include object instance as argument.
>>>>>>
>>>>>>
>>>>>> On Thu, Nov 14, 2019, 21:42 Patrick Carra 
>>>>>> wrote:
>>>>>>
>>>>>>> I am passing a parameter in a url to another view and during the
>>>>>>> process it gets changed.  An original parameter example that produces 
>>>>>>> the
>>>>>>> error is OQYX/173774//ZYO but gets changed to 
>>>>>>> '/viewLit/OQYX/173774/ZYO/'
>>>>>>> It drops the second / between 173774 and ZYO. I assumed this was 
>>>>>>> because it
>>>>>>> was treating it as an escape character? So I tried adding an r in the
>>>>>>> urls.py file but it did not have any effect. Here is my template code 
>>>>>>> for
>>>>>>> the page that generates the hyperlink:
>>>>>>>
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> Circuits
>>>>>>> 
>>>>>>> h1 {
>>>>>>> color:blue;
>>>>>>> }
>>>>>>> h4 {
>>>>>>> color:red;
>>>>>>> }
>>>>>>> .tabledata {
>>>>>>>   background: #395870; color:#fff;
>>>>>>> }
>>>>>>> .tablerow:nth-child(even) {
>>>>>>>   background-color: #f2f2f2;
>>>>>>> }
>>>>>>> .form{
>>>>>>>   width:100%;
>>>>>>> }
>>>>>>> .field {
>>>>>>>   background: #white; float: left; margin: 1%; width: 200;
>>>>>>> }
>>>>>>> 
>>>>>>> {% block content %}
>>>>>>>   Search Lit Circuits
>>>>>>> Enter your search criteria below:
>>>>>>> 
>>>>>>> 
>>>>>>>   
>>>>>>> Circuit ID:>>>>>> name="circuitid" maxlength="100">
>>>>>>> Bandwidth:>>>>>> name="bandwidth" maxlength="100">
>>>>>>> Region:>>>>>> name="region" maxlength="100">
>>>>>>>   
>>>>>>>   
>>>>>>> Carrier:>>>>>> name="carrier" maxlength="100">
>>>>>>> Status:>>>>>> name="status" maxlength="100">
>>>>>>> Segmentname:>>>>>> "text" name="segmentname" maxlength="100">
>>>>>>>   
>>>>>>>   
>>>>>>> MRC:>>>>>> "

Re: django passing a parameter for a view in a url produces Error: Circuitinfotable matching query does not exist.

2019-11-14 Thread DANIEL URBANO DE LA RUA
mmm sorry you are pasing the id you dont have any weird character let me
see

El jue., 14 nov. 2019 a las 20:28, DANIEL URBANO DE LA RUA (<
dannybombas...@gmail.com>) escribió:

> ok i didn't see your app name is viewList sorry uset templatetag to scape
> weird character because you are using url encoding
>
> El jue., 14 nov. 2019 a las 20:26, DANIEL URBANO DE LA RUA (<
> dannybombas...@gmail.com>) escribió:
>
>> then use the templatetag |safe
>>
>> El jue., 14 nov. 2019 a las 18:05, DANIEL URBANO DE LA RUA (<
>> dannybombas...@gmail.com>) escribió:
>>
>>> a href="/viewLit/{{ circuit.circuitid }}" t
>>>
>>> and in your urls.py
>>>
>>>  path(r'/', views.viewLit, name='viewLit'),
>>>
>>> El jue., 14 nov. 2019 a las 18:04, DANIEL URBANO DE LA RUA (<
>>> dannybombas...@gmail.com>) escribió:
>>>
>>>> check on your a link you are including vieset/ and there is not on your
>>>> url
>>>>
>>>> El jue., 14 nov. 2019 a las 17:17, Integr@te System (<
>>>> datacentral...@gmail.com>) escribió:
>>>>
>>>>> Hi Informer,
>>>>> check you model Circuitinfotable,
>>>>> Method call must include object instance as argument.
>>>>>
>>>>>
>>>>> On Thu, Nov 14, 2019, 21:42 Patrick Carra  wrote:
>>>>>
>>>>>> I am passing a parameter in a url to another view and during the
>>>>>> process it gets changed.  An original parameter example that produces the
>>>>>> error is OQYX/173774//ZYO but gets changed to '/viewLit/OQYX/173774/ZYO/'
>>>>>> It drops the second / between 173774 and ZYO. I assumed this was because 
>>>>>> it
>>>>>> was treating it as an escape character? So I tried adding an r in the
>>>>>> urls.py file but it did not have any effect. Here is my template code for
>>>>>> the page that generates the hyperlink:
>>>>>>
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> Circuits
>>>>>> 
>>>>>> h1 {
>>>>>> color:blue;
>>>>>> }
>>>>>> h4 {
>>>>>> color:red;
>>>>>> }
>>>>>> .tabledata {
>>>>>>   background: #395870; color:#fff;
>>>>>> }
>>>>>> .tablerow:nth-child(even) {
>>>>>>   background-color: #f2f2f2;
>>>>>> }
>>>>>> .form{
>>>>>>   width:100%;
>>>>>> }
>>>>>> .field {
>>>>>>   background: #white; float: left; margin: 1%; width: 200;
>>>>>> }
>>>>>> 
>>>>>> {% block content %}
>>>>>>   Search Lit Circuits
>>>>>> Enter your search criteria below:
>>>>>> 
>>>>>> 
>>>>>>   
>>>>>> Circuit ID:>>>>> name="circuitid" maxlength="100">
>>>>>> Bandwidth:>>>>> name="bandwidth" maxlength="100">
>>>>>> Region:>>>>> ="region" maxlength="100">
>>>>>>   
>>>>>>   
>>>>>> Carrier:>>>>> name="carrier" maxlength="100">
>>>>>> Status:>>>>> ="status" maxlength="100">
>>>>>> Segmentname:>>>>> name="segmentname" maxlength="100">
>>>>>>   
>>>>>>   
>>>>>> MRC:>>>>> "mrcnew" maxlength="100">
>>>>>>   
>>>>>> 
>>>>>> Search
>>>>>> 
>>>>>> 
>>>>>>   
>>>>>> 
>>>>>> {{ filter.qs.count }} circuits returned
>>>>>> 
>>>>>>   
>>>>>> 
>>>>>>   
>>>>>> 
>>>>>>   {% if user.is_authenticated %}
>>>>>> Edit/
>>>>>>   {% endif %}
>>>>>> View
>>>&g

Re: django passing a parameter for a view in a url produces Error: Circuitinfotable matching query does not exist.

2019-11-14 Thread DANIEL URBANO DE LA RUA
ok i didn't see your app name is viewList sorry uset templatetag to scape
weird character because you are using url encoding

El jue., 14 nov. 2019 a las 20:26, DANIEL URBANO DE LA RUA (<
dannybombas...@gmail.com>) escribió:

> then use the templatetag |safe
>
> El jue., 14 nov. 2019 a las 18:05, DANIEL URBANO DE LA RUA (<
> dannybombas...@gmail.com>) escribió:
>
>> a href="/viewLit/{{ circuit.circuitid }}" t
>>
>> and in your urls.py
>>
>>  path(r'/', views.viewLit, name='viewLit'),
>>
>> El jue., 14 nov. 2019 a las 18:04, DANIEL URBANO DE LA RUA (<
>> dannybombas...@gmail.com>) escribió:
>>
>>> check on your a link you are including vieset/ and there is not on your
>>> url
>>>
>>> El jue., 14 nov. 2019 a las 17:17, Integr@te System (<
>>> datacentral...@gmail.com>) escribió:
>>>
>>>> Hi Informer,
>>>> check you model Circuitinfotable,
>>>> Method call must include object instance as argument.
>>>>
>>>>
>>>> On Thu, Nov 14, 2019, 21:42 Patrick Carra  wrote:
>>>>
>>>>> I am passing a parameter in a url to another view and during the
>>>>> process it gets changed.  An original parameter example that produces the
>>>>> error is OQYX/173774//ZYO but gets changed to '/viewLit/OQYX/173774/ZYO/'
>>>>> It drops the second / between 173774 and ZYO. I assumed this was because 
>>>>> it
>>>>> was treating it as an escape character? So I tried adding an r in the
>>>>> urls.py file but it did not have any effect. Here is my template code for
>>>>> the page that generates the hyperlink:
>>>>>
>>>>> 
>>>>> 
>>>>> 
>>>>> Circuits
>>>>> 
>>>>> h1 {
>>>>> color:blue;
>>>>> }
>>>>> h4 {
>>>>> color:red;
>>>>> }
>>>>> .tabledata {
>>>>>   background: #395870; color:#fff;
>>>>> }
>>>>> .tablerow:nth-child(even) {
>>>>>   background-color: #f2f2f2;
>>>>> }
>>>>> .form{
>>>>>   width:100%;
>>>>> }
>>>>> .field {
>>>>>   background: #white; float: left; margin: 1%; width: 200;
>>>>> }
>>>>> 
>>>>> {% block content %}
>>>>>   Search Lit Circuits
>>>>> Enter your search criteria below:
>>>>> 
>>>>> 
>>>>>   
>>>>> Circuit ID:>>>> name="circuitid" maxlength="100">
>>>>> Bandwidth:>>>> name="bandwidth" maxlength="100">
>>>>> Region:>>>> "region" maxlength="100">
>>>>>   
>>>>>   
>>>>> Carrier:>>>> ="carrier" maxlength="100">
>>>>> Status:>>>> "status" maxlength="100">
>>>>> Segmentname:>>>> name="segmentname" maxlength="100">
>>>>>   
>>>>>   
>>>>> MRC:>>>> "mrcnew" maxlength="100">
>>>>>   
>>>>> 
>>>>> Search
>>>>> 
>>>>> 
>>>>>   
>>>>> 
>>>>> {{ filter.qs.count }} circuits returned
>>>>> 
>>>>>   
>>>>> 
>>>>>   
>>>>> 
>>>>>   {% if user.is_authenticated %}
>>>>> Edit/
>>>>>   {% endif %}
>>>>> View
>>>>> 
>>>>> CircuitID
>>>>> Bandwidth
>>>>> Region
>>>>> Carrier
>>>>> Status Segmentname MRC  
>>>>>  {% for circuit in filter.qs %}  >>>> class="actions"> {% if user.is_authenticated %} >>>> title="Edit">Edit {% endif %} >>>> title="View">View  {{ circuit.circuitid }} {{
>>>>> circuit.bandwidth }} {{ circuit.region }} {{
>>>>> circuit.carrier }} {{ circuit.status }} {{
>>>

Re: django passing a parameter for a view in a url produces Error: Circuitinfotable matching query does not exist.

2019-11-14 Thread DANIEL URBANO DE LA RUA
then use the templatetag |safe

El jue., 14 nov. 2019 a las 18:05, DANIEL URBANO DE LA RUA (<
dannybombas...@gmail.com>) escribió:

> a href="/viewLit/{{ circuit.circuitid }}" t
>
> and in your urls.py
>
>  path(r'/', views.viewLit, name='viewLit'),
>
> El jue., 14 nov. 2019 a las 18:04, DANIEL URBANO DE LA RUA (<
> dannybombas...@gmail.com>) escribió:
>
>> check on your a link you are including vieset/ and there is not on your
>> url
>>
>> El jue., 14 nov. 2019 a las 17:17, Integr@te System (<
>> datacentral...@gmail.com>) escribió:
>>
>>> Hi Informer,
>>> check you model Circuitinfotable,
>>> Method call must include object instance as argument.
>>>
>>>
>>> On Thu, Nov 14, 2019, 21:42 Patrick Carra  wrote:
>>>
>>>> I am passing a parameter in a url to another view and during the
>>>> process it gets changed.  An original parameter example that produces the
>>>> error is OQYX/173774//ZYO but gets changed to '/viewLit/OQYX/173774/ZYO/'
>>>> It drops the second / between 173774 and ZYO. I assumed this was because it
>>>> was treating it as an escape character? So I tried adding an r in the
>>>> urls.py file but it did not have any effect. Here is my template code for
>>>> the page that generates the hyperlink:
>>>>
>>>> 
>>>> 
>>>> 
>>>> Circuits
>>>> 
>>>> h1 {
>>>> color:blue;
>>>> }
>>>> h4 {
>>>> color:red;
>>>> }
>>>> .tabledata {
>>>>   background: #395870; color:#fff;
>>>> }
>>>> .tablerow:nth-child(even) {
>>>>   background-color: #f2f2f2;
>>>> }
>>>> .form{
>>>>   width:100%;
>>>> }
>>>> .field {
>>>>   background: #white; float: left; margin: 1%; width: 200;
>>>> }
>>>> 
>>>> {% block content %}
>>>>   Search Lit Circuits
>>>> Enter your search criteria below:
>>>> 
>>>> 
>>>>   
>>>> Circuit ID:>>> name="circuitid" maxlength="100">
>>>> Bandwidth:>>> name="bandwidth" maxlength="100">
>>>> Region:>>> "region" maxlength="100">
>>>>   
>>>>   
>>>> Carrier:>>> "carrier" maxlength="100">
>>>> Status:>>> "status" maxlength="100">
>>>> Segmentname:>>> name="segmentname" maxlength="100">
>>>>   
>>>>   
>>>> MRC:>>> "mrcnew" maxlength="100">
>>>>   
>>>> 
>>>> Search
>>>> 
>>>> 
>>>>   
>>>> 
>>>> {{ filter.qs.count }} circuits returned
>>>> 
>>>>   
>>>> 
>>>>   
>>>> 
>>>>   {% if user.is_authenticated %}
>>>> Edit/
>>>>   {% endif %}
>>>> View
>>>> 
>>>> CircuitID
>>>> Bandwidth
>>>> Region
>>>> Carrier
>>>> Status Segmentname MRC  
>>>>  {% for circuit in filter.qs %}  >>> class="actions"> {% if user.is_authenticated %} >>> title="Edit">Edit {% endif %} >>> title="View">View  {{ circuit.circuitid }} {{
>>>> circuit.bandwidth }} {{ circuit.region }} {{
>>>> circuit.carrier }} {{ circuit.status }} {{
>>>> circuit.segmentname }} {{ circuit.mrcnew }}  {% endfor
>>>> %} {% endblock %} 
>>>>
>>>>
>>>> My project level urls.py file:
>>>> """ciopsdb URL Configuration
>>>>
>>>> The `urlpatterns` list routes URLs to views. For more information
>>>> please see:
>>>> https://docs.djangoproject.com/en/2.2/topics/http/urls/
>>>> Examples:
>>>> Function views
>>>> 1. Add an import:  from my_app import views
>>>> 2. Add a URL to urlpatterns:  path('', views.home, name='home')
>>>> Class-based views
>>>&g

Re: django passing a parameter for a view in a url produces Error: Circuitinfotable matching query does not exist.

2019-11-14 Thread DANIEL URBANO DE LA RUA
a href="/viewLit/{{ circuit.circuitid }}" t

and in your urls.py

 path(r'/', views.viewLit, name='viewLit'),

El jue., 14 nov. 2019 a las 18:04, DANIEL URBANO DE LA RUA (<
dannybombas...@gmail.com>) escribió:

> check on your a link you are including vieset/ and there is not on your url
>
> El jue., 14 nov. 2019 a las 17:17, Integr@te System (<
> datacentral...@gmail.com>) escribió:
>
>> Hi Informer,
>> check you model Circuitinfotable,
>> Method call must include object instance as argument.
>>
>>
>> On Thu, Nov 14, 2019, 21:42 Patrick Carra  wrote:
>>
>>> I am passing a parameter in a url to another view and during the process
>>> it gets changed.  An original parameter example that produces the error
>>> is OQYX/173774//ZYO but gets changed to '/viewLit/OQYX/173774/ZYO/' It
>>> drops the second / between 173774 and ZYO. I assumed this was because it
>>> was treating it as an escape character? So I tried adding an r in the
>>> urls.py file but it did not have any effect. Here is my template code for
>>> the page that generates the hyperlink:
>>>
>>> 
>>> 
>>> 
>>> Circuits
>>> 
>>> h1 {
>>> color:blue;
>>> }
>>> h4 {
>>> color:red;
>>> }
>>> .tabledata {
>>>   background: #395870; color:#fff;
>>> }
>>> .tablerow:nth-child(even) {
>>>   background-color: #f2f2f2;
>>> }
>>> .form{
>>>   width:100%;
>>> }
>>> .field {
>>>   background: #white; float: left; margin: 1%; width: 200;
>>> }
>>> 
>>> {% block content %}
>>>   Search Lit Circuits
>>> Enter your search criteria below:
>>> 
>>> 
>>>   
>>> Circuit ID:>> name="circuitid" maxlength="100">
>>> Bandwidth:>> ="bandwidth" maxlength="100">
>>> Region:>> "region" maxlength="100">
>>>   
>>>   
>>> Carrier:>> "carrier" maxlength="100">
>>> Status:>> "status" maxlength="100">
>>> Segmentname:>> name="segmentname" maxlength="100">
>>>   
>>>   
>>> MRC:>> "mrcnew" maxlength="100">
>>>   
>>> 
>>> Search
>>> 
>>> 
>>>   
>>> 
>>> {{ filter.qs.count }} circuits returned
>>> 
>>>   
>>> 
>>>   
>>> 
>>>   {% if user.is_authenticated %}
>>> Edit/
>>>   {% endif %}
>>> View
>>> 
>>> CircuitID
>>> Bandwidth
>>> Region
>>> Carrier
>>> Status Segmentname MRC   
>>> {% for circuit in filter.qs %}  
>>> {% if user.is_authenticated %} >> target="_blank" class="edit-item" title="Edit">Edit {% endif %} >> href="/viewLit/{{ circuit.circuitid }}" target="_blank" class="view-item"
>>> title="View">View  {{ circuit.circuitid }} {{
>>> circuit.bandwidth }} {{ circuit.region }} {{
>>> circuit.carrier }} {{ circuit.status }} {{
>>> circuit.segmentname }} {{ circuit.mrcnew }}  {% endfor
>>> %} {% endblock %} 
>>>
>>>
>>> My project level urls.py file:
>>> """ciopsdb URL Configuration
>>>
>>> The `urlpatterns` list routes URLs to views. For more information please
>>> see:
>>> https://docs.djangoproject.com/en/2.2/topics/http/urls/
>>> Examples:
>>> Function views
>>> 1. Add an import:  from my_app import views
>>> 2. Add a URL to urlpatterns:  path('', views.home, name='home')
>>> Class-based views
>>> 1. Add an import:  from other_app.views import Home
>>> 2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
>>> Including another URLconf
>>> 1. Import the include() function: from django.urls import include,
>>> path
>>> 2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
>>> """
>>> from django.contrib import admin
>>> from django.urls import path, include
>>

Re: django passing a parameter for a view in a url produces Error: Circuitinfotable matching query does not exist.

2019-11-14 Thread DANIEL URBANO DE LA RUA
check on your a link you are including vieset/ and there is not on your url

El jue., 14 nov. 2019 a las 17:17, Integr@te System (<
datacentral...@gmail.com>) escribió:

> Hi Informer,
> check you model Circuitinfotable,
> Method call must include object instance as argument.
>
>
> On Thu, Nov 14, 2019, 21:42 Patrick Carra  wrote:
>
>> I am passing a parameter in a url to another view and during the process
>> it gets changed.  An original parameter example that produces the error
>> is OQYX/173774//ZYO but gets changed to '/viewLit/OQYX/173774/ZYO/' It
>> drops the second / between 173774 and ZYO. I assumed this was because it
>> was treating it as an escape character? So I tried adding an r in the
>> urls.py file but it did not have any effect. Here is my template code for
>> the page that generates the hyperlink:
>>
>> 
>> 
>> 
>> Circuits
>> 
>> h1 {
>> color:blue;
>> }
>> h4 {
>> color:red;
>> }
>> .tabledata {
>>   background: #395870; color:#fff;
>> }
>> .tablerow:nth-child(even) {
>>   background-color: #f2f2f2;
>> }
>> .form{
>>   width:100%;
>> }
>> .field {
>>   background: #white; float: left; margin: 1%; width: 200;
>> }
>> 
>> {% block content %}
>>   Search Lit Circuits
>> Enter your search criteria below:
>> 
>> 
>>   
>> Circuit ID:> ="circuitid" maxlength="100">
>> Bandwidth:> "bandwidth" maxlength="100">
>> Region:> "region" maxlength="100">
>>   
>>   
>> Carrier:> "carrier" maxlength="100">
>> Status:> "status" maxlength="100">
>> Segmentname:> name="segmentname" maxlength="100">
>>   
>>   
>> MRC:> "mrcnew" maxlength="100">
>>   
>> 
>> Search
>> 
>> 
>>   
>> 
>> {{ filter.qs.count }} circuits returned
>> 
>>   
>> 
>>   
>> 
>>   {% if user.is_authenticated %}
>> Edit/
>>   {% endif %}
>> View
>> 
>> CircuitID
>> Bandwidth
>> Region
>> Carrier
>> Status Segmentname MRC   
>> {% for circuit in filter.qs %}  
>> {% if user.is_authenticated %} > target="_blank" class="edit-item" title="Edit">Edit {% endif %} > href="/viewLit/{{ circuit.circuitid }}" target="_blank" class="view-item"
>> title="View">View  {{ circuit.circuitid }} {{
>> circuit.bandwidth }} {{ circuit.region }} {{
>> circuit.carrier }} {{ circuit.status }} {{
>> circuit.segmentname }} {{ circuit.mrcnew }}  {% endfor
>> %} {% endblock %} 
>>
>>
>> My project level urls.py file:
>> """ciopsdb URL Configuration
>>
>> The `urlpatterns` list routes URLs to views. For more information please
>> see:
>> https://docs.djangoproject.com/en/2.2/topics/http/urls/
>> Examples:
>> Function views
>> 1. Add an import:  from my_app import views
>> 2. Add a URL to urlpatterns:  path('', views.home, name='home')
>> Class-based views
>> 1. Add an import:  from other_app.views import Home
>> 2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
>> Including another URLconf
>> 1. Import the include() function: from django.urls import include,
>> path
>> 2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
>> """
>> from django.contrib import admin
>> from django.urls import path, include
>> from django.conf.urls import url
>>
>> urlpatterns = [
>> path('admin/', admin.site.urls),
>> path('', include('homepage.urls')),
>> path('searchlit/', include('searchLit.urls')),
>> path('viewLit/', include('viewLit.urls')),
>> ]
>>
>>
>> My viewLit app's urls.py
>>
>> from django.urls import path, include
>> from django.conf.urls import  url
>> from . import views
>>
>> urlpatterns= [
>>  path(r'/', views.viewLit, name='viewLit'),
>> ]
>>
>>
>> My viewLit app's views.py
>>
>> from django.shortcuts import render
>> from django.http import HttpResponse
>> from django.views.generic import TemplateView
>>
>> from . models import Circuitinfotable, Budgettable, Xcinventorytable
>>
>> # Create your views here.
>> def viewLit(request, circuitid):
>> record = Circuitinfotable.objects.get(circuitid=circuitid)
>> template = 'viewLit/viewCircuit.html'
>> context = {'record':record}
>> return render(request, template, context)
>>
>>
>> The traceback that I receive as an error:
>>
>> Traceback:File 
>> "/home/db_user/ciopsdb/venv/lib64/python3.6/site-packages/django/core/handlers/exception.py"
>>  in inner  34. response = get_response(request)File 
>> "/home/db_user/ciopsdb/venv/lib64/python3.6/site-packages/django/core/handlers/base.py"
>>  in _get_response  115. response = 
>> self.process_exception_by_middleware(e, request)File 
>> "/home/db_user/ciopsdb/venv/lib64/python3.6/site-packages/django/core/handlers/base.py"
>>  in _get_response  113. response = wrapped_callback(request, 
>> *callback_args, **callback_kwargs)File 
>> 

Re: tengo un problema a la hora de hacer deploying django app to heroku

2019-11-14 Thread DANIEL URBANO DE LA RUA
tambien prueba lo que dice el compañero si no puede detectar que tipo de
app se trata  igual es eso talvez borraste algun archivo de configuracion

El jue., 14 nov. 2019 a las 13:22, DANIEL URBANO DE LA RUA (<
dannybombas...@gmail.com>) escribió:

> yo heroku no utilizo ya que los despiegues los hago yo en docker o directo
> sobre el server pero lo unico que veo en tu log es que desde heroku no
> puede hacer ese push o commit al que lo tengas sincronizado con heroku,
> prueba a hacer tu el push y ver si pasa el  push o comit o merge al evento
> al que le hayas hecho el hook
>
> El jue., 14 nov. 2019 a las 13:19, DANIEL URBANO DE LA RUA (<
> dannybombas...@gmail.com>) escribió:
>
>> vamos a ver no puede hacer push sobre la rama master puedes tu hacerlo
>> con git normal
>>
>> El jue., 14 nov. 2019 a las 12:59, Integr@te System (<
>> datacentral...@gmail.com>) escribió:
>>
>>> Hola por favor revisa
>>>
>>> https://devcenter.heroku.com/articles/buildpacks#detection-failure
>>>
>>> On Thu, Nov 14, 2019, 09:02 jose angel encinas ramos <
>>> encinasj.an...@gmail.com> wrote:
>>>
>>>> mas que nada el poblema que tengo es técnico , el detalle es que cuando
>>>> escribo en la terminal git push heroku master me lanza el siguiente error y
>>>> no entiendo cual es el error.
>>>>
>>>> (webapps) ➜  BuscadorTims git:(master) ✗ git push heroku master
>>>> Counting objects: 221, done.
>>>> Delta compression using up to 8 threads.
>>>> Compressing objects: 100% (203/203), done.
>>>> Writing objects: 100% (221/221), 2.02 MiB | 1002.00 KiB/s, done.
>>>> Total 221 (delta 60), reused 0 (delta 0)
>>>> remote: Compressing source files... done.
>>>> remote: Building source:
>>>> remote:
>>>> remote: -> App not compatible with buildpack:
>>>> https://buildpack-registry.s3.amazonaws.com/buildpacks/heroku/python.tgz
>>>> remote:More info:
>>>> https://devcenter.heroku.com/articles/buildpacks#detection-failure
>>>> remote:
>>>> remote:  ! Push failed
>>>> remote: Verifying deploy...
>>>> remote:
>>>> remote: ! Push rejected to entregastim.
>>>> remote:
>>>> To https://git.heroku.com/entregastim.git
>>>>  ! [remote rejected] master -> master (pre-receive hook declined)
>>>> error: failed to push some refs to '
>>>> https://git.heroku.com/entregastim.git'
>>>>
>>>> --
>>>> 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 view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/django-users/458db1d6-0a14-498b-b938-76ecfb4a8e40%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/django-users/458db1d6-0a14-498b-b938-76ecfb4a8e40%40googlegroups.com?utm_medium=email_source=footer>
>>>> .
>>>>
>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAP5HUWp50%2BmzcA9h3OMbTiEHWsb3kmENKgPJwqy0-Dg3O-H-%2Bg%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAP5HUWp50%2BmzcA9h3OMbTiEHWsb3kmENKgPJwqy0-Dg3O-H-%2Bg%40mail.gmail.com?utm_medium=email_source=footer>
>>> .
>>>
>>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO_yRT1sNnLMqYOwOR2GK4sdRnrzpE1V1h3hrsuf58hsT-6KWA%40mail.gmail.com.


Re: tengo un problema a la hora de hacer deploying django app to heroku

2019-11-14 Thread DANIEL URBANO DE LA RUA
yo heroku no utilizo ya que los despiegues los hago yo en docker o directo
sobre el server pero lo unico que veo en tu log es que desde heroku no
puede hacer ese push o commit al que lo tengas sincronizado con heroku,
prueba a hacer tu el push y ver si pasa el  push o comit o merge al evento
al que le hayas hecho el hook

El jue., 14 nov. 2019 a las 13:19, DANIEL URBANO DE LA RUA (<
dannybombas...@gmail.com>) escribió:

> vamos a ver no puede hacer push sobre la rama master puedes tu hacerlo con
> git normal
>
> El jue., 14 nov. 2019 a las 12:59, Integr@te System (<
> datacentral...@gmail.com>) escribió:
>
>> Hola por favor revisa
>>
>> https://devcenter.heroku.com/articles/buildpacks#detection-failure
>>
>> On Thu, Nov 14, 2019, 09:02 jose angel encinas ramos <
>> encinasj.an...@gmail.com> wrote:
>>
>>> mas que nada el poblema que tengo es técnico , el detalle es que cuando
>>> escribo en la terminal git push heroku master me lanza el siguiente error y
>>> no entiendo cual es el error.
>>>
>>> (webapps) ➜  BuscadorTims git:(master) ✗ git push heroku master
>>> Counting objects: 221, done.
>>> Delta compression using up to 8 threads.
>>> Compressing objects: 100% (203/203), done.
>>> Writing objects: 100% (221/221), 2.02 MiB | 1002.00 KiB/s, done.
>>> Total 221 (delta 60), reused 0 (delta 0)
>>> remote: Compressing source files... done.
>>> remote: Building source:
>>> remote:
>>> remote: -> App not compatible with buildpack:
>>> https://buildpack-registry.s3.amazonaws.com/buildpacks/heroku/python.tgz
>>> remote:More info:
>>> https://devcenter.heroku.com/articles/buildpacks#detection-failure
>>> remote:
>>> remote:  ! Push failed
>>> remote: Verifying deploy...
>>> remote:
>>> remote: ! Push rejected to entregastim.
>>> remote:
>>> To https://git.heroku.com/entregastim.git
>>>  ! [remote rejected] master -> master (pre-receive hook declined)
>>> error: failed to push some refs to '
>>> https://git.heroku.com/entregastim.git'
>>>
>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/458db1d6-0a14-498b-b938-76ecfb4a8e40%40googlegroups.com
>>> <https://groups.google.com/d/msgid/django-users/458db1d6-0a14-498b-b938-76ecfb4a8e40%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAP5HUWp50%2BmzcA9h3OMbTiEHWsb3kmENKgPJwqy0-Dg3O-H-%2Bg%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAP5HUWp50%2BmzcA9h3OMbTiEHWsb3kmENKgPJwqy0-Dg3O-H-%2Bg%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO_yRT1Zm2b3Hz3bK3VOsiWSSYEtMeGneAQLO_VfOKOLXuOBtA%40mail.gmail.com.


Re: tengo un problema a la hora de hacer deploying django app to heroku

2019-11-14 Thread DANIEL URBANO DE LA RUA
vamos a ver no puede hacer push sobre la rama master puedes tu hacerlo con
git normal

El jue., 14 nov. 2019 a las 12:59, Integr@te System (<
datacentral...@gmail.com>) escribió:

> Hola por favor revisa
>
> https://devcenter.heroku.com/articles/buildpacks#detection-failure
>
> On Thu, Nov 14, 2019, 09:02 jose angel encinas ramos <
> encinasj.an...@gmail.com> wrote:
>
>> mas que nada el poblema que tengo es técnico , el detalle es que cuando
>> escribo en la terminal git push heroku master me lanza el siguiente error y
>> no entiendo cual es el error.
>>
>> (webapps) ➜  BuscadorTims git:(master) ✗ git push heroku master
>> Counting objects: 221, done.
>> Delta compression using up to 8 threads.
>> Compressing objects: 100% (203/203), done.
>> Writing objects: 100% (221/221), 2.02 MiB | 1002.00 KiB/s, done.
>> Total 221 (delta 60), reused 0 (delta 0)
>> remote: Compressing source files... done.
>> remote: Building source:
>> remote:
>> remote: -> App not compatible with buildpack:
>> https://buildpack-registry.s3.amazonaws.com/buildpacks/heroku/python.tgz
>> remote:More info:
>> https://devcenter.heroku.com/articles/buildpacks#detection-failure
>> remote:
>> remote:  ! Push failed
>> remote: Verifying deploy...
>> remote:
>> remote: ! Push rejected to entregastim.
>> remote:
>> To https://git.heroku.com/entregastim.git
>>  ! [remote rejected] master -> master (pre-receive hook declined)
>> error: failed to push some refs to '
>> https://git.heroku.com/entregastim.git'
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/458db1d6-0a14-498b-b938-76ecfb4a8e40%40googlegroups.com
>> 
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAP5HUWp50%2BmzcA9h3OMbTiEHWsb3kmENKgPJwqy0-Dg3O-H-%2Bg%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO_yRT0zc9-thrtmGJnyp9q%3DpB%3DrXe6mJPNMEL-vm4zRjBZZvQ%40mail.gmail.com.


Re: djangorestframework vs GraphQL

2019-11-14 Thread DANIEL URBANO DE LA RUA
Thanks to you i happy if that can help you out ;)

On Thu, 14 Nov 2019, 09:51 guettli,  wrote:

> Thank you for the hint. Saleor looks very good.
>
> Am Mittwoch, 13. November 2019 11:35:17 UTC+1 schrieb DANIEL URBANO DE LA
> RUA:
>>
>> You have a good example on saleor eccomerce is on github
>>
>> On Wed, 13 Nov 2019, 09:15 guettli,  wrote:
>>
>>> I never used GraphQL, but I like it. In the past the django web
>>> framework had a different API than a restframework for ruby or Nodejs.
>>>
>>> With GraphQL you have a well defined API and changeing the backend part
>>> should be easier.
>>>
>>> But again, I never used it up to now.
>>>
>>> Am Dienstag, 12. November 2019 12:51:25 UTC+1 schrieb Integr@te System:
>>>>
>>>> Hi Freinds,
>>>>
>>>> GQL, when compare DRF, it as an option, and for whom familiar with
>>>> other tools without DRF or Python, and align thinking with
>>>> framework/anythingelse relate to JS.
>>>> Base on your choice or requirement.
>>>>
>>>> On Tue, Nov 12, 2019, 16:24 Nick Sarbicki  wrote:
>>>>
>>>>> GraphQL strikes me as very similar to NoSQL.
>>>>>
>>>>> Useful in niches but the older standard is better in general.
>>>>>
>>>>> I've tried both and the added complexity (designing a system to
>>>>> generate all required data from a single request) of GraphQL for the,
>>>>> seemingly minor, gain (a single request for all your data) doesn't enthuse
>>>>> me.
>>>>>
>>>>> It's an interesting solution to a problem I've never really had. Not
>>>>> to say it isn't useful in some situations, I just haven't yet encountered 
>>>>> a
>>>>> situation where it is.
>>>>>
>>>>> - Nick
>>>>>
>>>>>
>>>>> On Tue, Nov 12, 2019 at 9:14 AM guettli  wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> I am new to GraphQL, but I like the idea very much.
>>>>>>
>>>>>> There is already an A Django integration for Graphene:
>>>>>> https://github.com/graphql-python/graphene-django
>>>>>>
>>>>>>
>>>>>> What are the pros and cons of djangorestframework and GraphQL?
>>>>>>
>>>>>> Which one would you choose, if you could start from scratch?
>>>>>>
>>>>>> Regards,
>>>>>>   Thomas Güttler
>>>>>>
>>>>>> PS: I am always looking for feedback for my guidelines:
>>>>>> https://github.com/guettli/programming-guidelines
>>>>>>
>>>>>> --
>>>>>> 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...@googlegroups.com.
>>>>>> To view this discussion on the web visit
>>>>>> https://groups.google.com/d/msgid/django-users/f5dd3fea-28ab-4b01-9e07-0819b4bb91cb%40googlegroups.com
>>>>>> <https://groups.google.com/d/msgid/django-users/f5dd3fea-28ab-4b01-9e07-0819b4bb91cb%40googlegroups.com?utm_medium=email_source=footer>
>>>>>> .
>>>>>>
>>>>> --
>>>>> 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...@googlegroups.com.
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/django-users/CAGuvt90HG0OE9kV9axHvkFx8xfa7qD41HdV3tuoupSKYjdG9ew%40mail.gmail.com
>>>>> <https://groups.google.com/d/msgid/django-users/CAGuvt90HG0OE9kV9axHvkFx8xfa7qD41HdV3tuoupSKYjdG9ew%40mail.gmail.com?utm_medium=email_source=footer>
>>>>> .
>>>>>
>>>> --
>>> 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...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/20edfecc-976a-46c7-b71e-006ea5c660ea%40googlegroups.com
>>> <https://groups.google.com/d/msgid/django-users/20edfecc-976a-46c7-b71e-006ea5c660ea%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>>
>> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/0fe64ee7-4ae1-4ff1-b255-01e317b09da5%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/0fe64ee7-4ae1-4ff1-b255-01e317b09da5%40googlegroups.com?utm_medium=email_source=footer>
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO_yRT08vk3QaQz9m%3DtkD6JqmMwgc9%3DnOjiSNZTgu0AyuOFX6w%40mail.gmail.com.


Re: djangorestframework vs GraphQL

2019-11-13 Thread DANIEL URBANO DE LA RUA
You have a good example on saleor eccomerce is on github

On Wed, 13 Nov 2019, 09:15 guettli,  wrote:

> I never used GraphQL, but I like it. In the past the django web framework
> had a different API than a restframework for ruby or Nodejs.
>
> With GraphQL you have a well defined API and changeing the backend part
> should be easier.
>
> But again, I never used it up to now.
>
> Am Dienstag, 12. November 2019 12:51:25 UTC+1 schrieb Integr@te System:
>>
>> Hi Freinds,
>>
>> GQL, when compare DRF, it as an option, and for whom familiar with other
>> tools without DRF or Python, and align thinking with framework/anythingelse
>> relate to JS.
>> Base on your choice or requirement.
>>
>> On Tue, Nov 12, 2019, 16:24 Nick Sarbicki  wrote:
>>
>>> GraphQL strikes me as very similar to NoSQL.
>>>
>>> Useful in niches but the older standard is better in general.
>>>
>>> I've tried both and the added complexity (designing a system to generate
>>> all required data from a single request) of GraphQL for the, seemingly
>>> minor, gain (a single request for all your data) doesn't enthuse me.
>>>
>>> It's an interesting solution to a problem I've never really had. Not to
>>> say it isn't useful in some situations, I just haven't yet encountered a
>>> situation where it is.
>>>
>>> - Nick
>>>
>>>
>>> On Tue, Nov 12, 2019 at 9:14 AM guettli  wrote:
>>>
 Hi,

 I am new to GraphQL, but I like the idea very much.

 There is already an A Django integration for Graphene:
 https://github.com/graphql-python/graphene-django


 What are the pros and cons of djangorestframework and GraphQL?

 Which one would you choose, if you could start from scratch?

 Regards,
   Thomas Güttler

 PS: I am always looking for feedback for my guidelines:
 https://github.com/guettli/programming-guidelines

 --
 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...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/django-users/f5dd3fea-28ab-4b01-9e07-0819b4bb91cb%40googlegroups.com
 
 .

>>> --
>>> 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...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAGuvt90HG0OE9kV9axHvkFx8xfa7qD41HdV3tuoupSKYjdG9ew%40mail.gmail.com
>>> 
>>> .
>>>
>> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/20edfecc-976a-46c7-b71e-006ea5c660ea%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO_yRT1mMwY%3DFkHYraRqBNovxEaVW0BaGyW_u-4P2_uuOHQXJQ%40mail.gmail.com.


Re: Sending mail

2019-11-08 Thread DANIEL URBANO DE LA RUA
Hablas español?

On Fri, 8 Nov 2019, 17:59 Daniel Angel,  wrote:

> LOGIN.HTML
>
> {% extends "register/base.html" %}
> {% block content %}
>
>
> 
> 
> 
>  "100">
> 
> 
>
> {{ form.non_field_errors }}
> {% for field in form %}
> {{ field }}
> {{ field.errors }}
> 
> {% endfor %}
> 
> Iniciar sesión
> 
> {% csrf_token %}
> 
> 
> 
>
> 
> 
> 
>  "btn btn-primary">Registro de Cliente 
>  "btn btn-primary" >Olvidé mi contraseña
> 
> 
> 
>
> {% endblock %}
>
>
> MODELO.PY
>
> from django.db import models
> from django.core.mail import send_mail
> from django.contrib.auth.models import PermissionsMixin
> from django.contrib.auth.base_user import AbstractBaseUser
> from django.utils.translation import ugettext_lazy as _
> from django.utils import timezone
> from django.contrib.auth.base_user import BaseUserManager
> from apps.validators import validaRut
>
> class UserManager(BaseUserManager):
> """Administrador de usuariosー"""
> use_in_migrations = True
>
> def _create_user(self, email, password, **extra_fields):
> """Create and save a user with the given username, email, and
> password."""
> if not email:
> raise ValueError('The given email must be set')
> email = self.normalize_email(email)
>
> user = self.model(email=email, **extra_fields)
> user.set_password(password)
> user.save(using=self._db)
> return user
>
> def create_user(self, email, password=None, **extra_fields):
> extra_fields.setdefault('is_staff', False)
> extra_fields.setdefault('is_superuser', False)
> return self._create_user(email, password, **extra_fields)
>
> def create_superuser(self, email, password, **extra_fields):
> extra_fields.setdefault('is_staff', True)
> extra_fields.setdefault('is_superuser', True)
>
> if extra_fields.get('is_staff') is not True:
> raise ValueError('Superuser must have is_staff=True.')
> if extra_fields.get('is_superuser') is not True:
> raise ValueError('Superuser must have is_superuser=True.')
>
> return self._create_user(email, password, **extra_fields)
>
>
> class User(AbstractBaseUser, PermissionsMixin):
> """Modelo de usuario personalizado
>
> username Sin usar、email La dirección se usa como nombre de usuario.
>
> """
> email = models.EmailField(_('dirección de correo electrónico'), unique
> =True)
> first_name = models.CharField(_('Nombre'), max_length=30, blank=True)
> last_name = models.CharField(_('Apellido'), max_length=150, blank=True
> )
> rut = models.CharField(_('Rut'), validators= [validaRut], max_length=
> 10,blank=True, help_text="Ejemplo: 111-1")
>
> is_staff = models.BooleanField(
> _('staff status'),
> default=False,
> help_text=_(
>
> 'Designa si el usuario puede iniciar sesión en este sitio de administración.'
> ),
> )
> is_active = models.BooleanField(
> _('active'),
> default=True,
> help_text=_(
> 'Designa si este usuario debe ser tratado como activo. '
> 'Anule la selección de esto en lugar de eliminar cuentas.'
> ),
> )
> date_joined = models.DateTimeField(_('date joined'), default=
> timezone.now)
>
> objects = UserManager()
>
> EMAIL_FIELD = 'email'
> USERNAME_FIELD = 'email'
> REQUIRED_FIELDS = []
>
> class Meta:
> verbose_name = _('user')
> verbose_name_plural = _('users')
>
> def get_full_name(self):
>
> """Devuelve el primer nombre más el último nombre, con un espacio"""
> full_name = '%s %s' % (self.first_name, self.last_name, self.rut)
> return full_name.strip()
>
> def get_short_name(self):
> """Devuelve el nombre corto para el usuario."""
> return self.first_name
>
> def get_rut_name(self):
> """Devuelve el rut."""
> return self.rut
>
> def email_user(self, subject, message, from_email=None, **kwargs):
> """Enviar un correo electrónico a este usuario."""
> send_mail(subject, message, from_email, [self.email], **kwargs)
>
> @property
> def username(self):
> return self.email
>
> URLS.PY
>
> from django.urls import path
> from . import views
>
> app_name = 'register'
>
> urlpatterns = [
> path('', views.Top.as_view(), name='top'),
> path('login/', views.Login.as_view(), name='login'),
> path('logout/', views.Logout.as_view(), name='logout'),
> path('user_create/', views.UserCreate.as_view(), name='user_create'),
> path('user_create/done/', views.UserCreateDone.as_view(), name=
> 'user_create_done'),
> path('user_create/complete//', 

Re: Webhook creation for shopify

2019-11-05 Thread DANIEL URBANO DE LA RUA
https://help.shopify.com/en/api/reference/events/webhook

here you have the documentagtion

El mar., 5 nov. 2019 a las 12:46, Saswat Ray ()
escribió:

> HI,
> Can anyone help me creating a webhook for shopify
>
> *Thanks*,
> *Saswat*
>
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAEhPkLEw%2BATt4n3uXwKAm-im5BbYCe_zWfp7UX%3Du7baWvh4WTg%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO_yRT0MrsLLhsRBS%2Bx4pQ%3DZKGYFOLfSZsyL89jufLnOF0mFog%40mail.gmail.com.


Re: Multiple Database Setup

2019-10-30 Thread DANIEL URBANO DE LA RUA
https://docs.djangoproject.com/en/2.2/topics/db/multi-db/

On Wed, 30 Oct 2019, 14:39 Rajat Chopra,  wrote:

> I wish to create a project with 2 apps.  Each app will have its own
> database - one for payments and another for statements.
>
> I have created a set of models within the models.py for the payments app
> and another set of models inside within the models.py for the statements
> app.
>
> When I run the command "python manage.py migrate --database=statements"
> how will Django know to look at the models.py file inside of the statements
> app and create those tables in the statements database ?
>
> In other words where do I put the code that connects the models inside of
> an app (statements/models.py) to the database that those models should be
> created and stored in?
> What would be an example of what this code will look like?
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/06bf4cc7-7261-4ac8-95fb-d523528c77e2%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO_yRT0aZjK%3D0AHU0U2wp1U16%3D1fH5MXx%3D6FpgxX0sVfNDnxeg%40mail.gmail.com.


Re: Django admin no recuerda mi superusuario

2019-10-13 Thread DANIEL URBANO DE LA RUA
Cuando ejecutas un migrate se crean las tablas en la db que tengas en el
setting

On Sun, 13 Oct 2019, 22:00 Julio Cojom,  wrote:

> Pensé en la BD pero cuando ejecuta manager.py eso debería de afectar la
> base que tenga en settings. Sera que hay 2 proyectos y ejecutas sobre uno
> pero necesitas los resultados en otro? Has revisado la tabla de usuarios en
> la BD para ver si está creado el registro?
>
> El dom., 13 de octubre de 2019 1:54 p. m., DANIEL URBANO DE LA RUA <
> dannybombas...@gmail.com> escribió:
>
>> Que base de datos tienes configurada rn el setting.py
>>
>> On Sun, 13 Oct 2019, 21:53 DANIEL URBANO DE LA RUA, <
>> dannybombas...@gmail.com> wrote:
>>
>>> No tienes nada que hacer en el setting
>>>
>>> On Sun, 13 Oct 2019, 21:23 Francisco Muller, <
>>> franciscojavierlevi...@gmail.com> wrote:
>>>
>>>> When creating a super user in django with python3 manage.py
>>>> createsuperuser
>>>> and at another time I want to log in to the administrator of my project
>>>> with my super user who does not let me connect with my username and
>>>> password.
>>>> What should I change in the settings so that django can remember my
>>>> superuser account every time I log in?
>>>>
>>>> --
>>>> 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 view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/django-users/ccf5f81b-74a4-4149-ab93-76164d056c39%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/django-users/ccf5f81b-74a4-4149-ab93-76164d056c39%40googlegroups.com?utm_medium=email_source=footer>
>>>> .
>>>>
>>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAO_yRT0h9s35OXyr-DUUHs3FsfzBt0dAo2Bn3Xt_wykEY82YBw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAO_yRT0h9s35OXyr-DUUHs3FsfzBt0dAo2Bn3Xt_wykEY82YBw%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAHRQUHmav__1bHK%2Bin-OKrfyUDNzuuybv7PpkpvZ%2Bd8xoQRU%3DQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAHRQUHmav__1bHK%2Bin-OKrfyUDNzuuybv7PpkpvZ%2Bd8xoQRU%3DQ%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO_yRT1r%2BRw%3DRUG%2BTpYOm1jwNuKFRLDN%2BZyyZ-Y0omfQtB5ZMg%40mail.gmail.com.


Re: Django admin no recuerda mi superusuario

2019-10-13 Thread DANIEL URBANO DE LA RUA
Que base de datos tienes configurada rn el setting.py

On Sun, 13 Oct 2019, 21:53 DANIEL URBANO DE LA RUA, <
dannybombas...@gmail.com> wrote:

> No tienes nada que hacer en el setting
>
> On Sun, 13 Oct 2019, 21:23 Francisco Muller, <
> franciscojavierlevi...@gmail.com> wrote:
>
>> When creating a super user in django with python3 manage.py
>> createsuperuser
>> and at another time I want to log in to the administrator of my project
>> with my super user who does not let me connect with my username and
>> password.
>> What should I change in the settings so that django can remember my
>> superuser account every time I log in?
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/ccf5f81b-74a4-4149-ab93-76164d056c39%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/ccf5f81b-74a4-4149-ab93-76164d056c39%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO_yRT0h9s35OXyr-DUUHs3FsfzBt0dAo2Bn3Xt_wykEY82YBw%40mail.gmail.com.


Re: Django admin no recuerda mi superusuario

2019-10-13 Thread DANIEL URBANO DE LA RUA
No tienes nada que hacer en el setting

On Sun, 13 Oct 2019, 21:23 Francisco Muller, <
franciscojavierlevi...@gmail.com> wrote:

> When creating a super user in django with python3 manage.py createsuperuser
> and at another time I want to log in to the administrator of my project
> with my super user who does not let me connect with my username and
> password.
> What should I change in the settings so that django can remember my
> superuser account every time I log in?
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/ccf5f81b-74a4-4149-ab93-76164d056c39%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO_yRT3VEm2H-vkj8aR_qnDG%2Bb_yDQwcd4QjcbgAraTVzVguDw%40mail.gmail.com.


Re: MongoDB Connect with Django

2019-09-27 Thread DANIEL URBANO DE LA RUA
here you have a screen capture for you too see how it works. and you have 
the documentations

El viernes, 27 de septiembre de 2019, 13:55:00 (UTC+2), Abhishek Sharma 
escribió:
>
> Hi,
>
> Pls help out me on database connect established between django and mongodb.
>
> i'm trying to connect from localhost to establish.
>
> Thanks,
>
>
>
>
> --
>
> The information in this e-mail and any attachments is confidential and may 
> be legally privileged. It is intended solely for the addressee or 
> addressee's. If you are not an intended recipient, please delete the 
> message and any attachments and notify the sender of nondelivery. Any use 
> or disclosure of the contents of either is unauthorised and may be 
> unlawful. All liability for viruses is excluded to the fullest extent 
> permitted by law. Any views expressed in this message are those of the 
> individual sender, except where the sender states them, with requisite 
> authority, to be those of the organisation.
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/a72294a5-3a1e-4af0-ab8a-b30b4f055918%40googlegroups.com.


Re: MongoDB Connect with Django

2019-09-27 Thread DANIEL URBANO DE LA RUA


El viernes, 27 de septiembre de 2019, 13:55:00 (UTC+2), Abhishek Sharma 
escribió:
>
> Hi,
>
> Pls help out me on database connect established between django and mongodb.
>
> i'm trying to connect from localhost to establish.
>
> Thanks,
>
>
>
>
> --
>
> The information in this e-mail and any attachments is confidential and may 
> be legally privileged. It is intended solely for the addressee or 
> addressee's. If you are not an intended recipient, please delete the 
> message and any attachments and notify the sender of nondelivery. Any use 
> or disclosure of the contents of either is unauthorised and may be 
> unlawful. All liability for viruses is excluded to the fullest extent 
> permitted by law. Any views expressed in this message are those of the 
> individual sender, except where the sender states them, with requisite 
> authority, to be those of the organisation.
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/53c0c73a-32f4-4931-a13b-6e6f1d8a203e%40googlegroups.com.


Re: MongoDB Connect with Django

2019-09-27 Thread DANIEL URBANO DE LA RUA
https://django-mongodb-engine.readthedocs.io/en/latest/ it is ease to do is 
like another connection with another data base

El viernes, 27 de septiembre de 2019, 13:55:00 (UTC+2), Abhishek Sharma 
escribió:
>
> Hi,
>
> Pls help out me on database connect established between django and mongodb.
>
> i'm trying to connect from localhost to establish.
>
> Thanks,
>
>
>
>
> --
>
> The information in this e-mail and any attachments is confidential and may 
> be legally privileged. It is intended solely for the addressee or 
> addressee's. If you are not an intended recipient, please delete the 
> message and any attachments and notify the sender of nondelivery. Any use 
> or disclosure of the contents of either is unauthorised and may be 
> unlawful. All liability for viruses is excluded to the fullest extent 
> permitted by law. Any views expressed in this message are those of the 
> individual sender, except where the sender states them, with requisite 
> authority, to be those of the organisation.
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/f0dc8f68-d886-4fbe-8dc3-0e0aced2e7dc%40googlegroups.com.


Re: how to secure api?

2019-08-24 Thread DANIEL URBANO DE LA RUA
If you are not a member how you do that if not,  you have to allow anyone
to become a member of your site

On Sat, 24 Aug 2019, 09:52 Mohammad Kokhaee  hi guys
>
>
> ??is that secure the signup user api have no permission and have
> no authenticate
>
>
> (allow any )
>
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/a9d9bd34-80db-4f5d-ba54-15d2ad4b48da%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO_yRT2v7sUABr1GHxQedV6Fbp7GsZpVnkMKAVf7iqAKRKupGw%40mail.gmail.com.


Re: Rest framework autocomplete

2019-08-20 Thread DANIEL URBANO DE LA RUA
You will need to load the data first and for the rest use javascript

On Tue, 20 Aug 2019, 09:56 Andréas Kühne  Hi,
>
> This is exactly what you do with filtering and pagination? Could you
> please specify why it doesn't suit your usecase? I need to understand more
> to actually be able to help you :)
>
> Regards,
>
> Andréas
>
>
> Den tis 20 aug. 2019 kl 06:56 skrev Soumen Khatua <
> soumenkhatua...@gmail.com>:
>
>> My query is little bit different suppose I type A in the search box
>> imtjen it should recommend AAA, ABC if they are exist into the database.
>> How I can do that??
>>
>> On Tue, 20 Aug 2019, 09:33 Abu Yusuf,  wrote:
>>
>>> You need to use these both:
>>>
>>> 1.Filter: https://www.django-rest-framework.org/api-guide/filtering/
>>> 2.Pagination:
>>> https://www.django-rest-framework.org/api-guide/pagination/
>>>
>>> On Tue, Aug 20, 2019 at 9:45 AM Soumen Khatua 
>>> wrote:
>>>
 Hi guys,
  I want to implement autocomplete options like if someone type 'a' if
 it is contains in between any data it should provide the suggestion of the
 matched words. Then it will return first 25 matched data, how I can do that
 by using django rest framework. Please help me with source code.

 Thank you in advance

 Regards,
 Soumen

 --
 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 view this discussion on the web visit
 https://groups.google.com/d/msgid/django-users/CAPUw6WYDQP5YgDZcHC_e8_c%2BTbs3CNEuxutFtmcvmZF-gqu2xA%40mail.gmail.com
 
 .

>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CACNsr28GTfC8FTyWCzE0JkA4ynoVMpa-T2K%3DOs2uHUOjDxLE_g%40mail.gmail.com
>>> 
>>> .
>>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAPUw6WbREd%2B8Npdb%2B7%2BpYD1sNVy8yusBdGtnAfa74cWt5%2B7ddA%40mail.gmail.com
>> 
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAK4qSCdi4C6SgddGTD2gNHc%2ByVwZZ78DLV%3D_GWy%2BZzB0L1nmsA%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO_yRT31RDrX7n4npVE%2BrJJOzByYqJf1uKaY6Mb1V2PG9EMVqw%40mail.gmail.com.


Re: Exception value name is not defined

2019-08-16 Thread DANIEL URBANO DE LA RUA
There is not object defined

On Thu, 15 Aug 2019, 20:07 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 and check the url
>
> it returns
>
> Exception Type: NameError
> Exception Value:
>
> name 'obj' is not defined
>
>
>
> Is anyone familiar with this issue, please advise cause and fix?
>
> Best,
>
> K
>
>
>
>
>
>
>
>
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/8b426d60-4a54-4ec4-b130-05c0ae69cdd3%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO_yRT0ab50n-%2BwCagpU8zLfLipPiJnyRrLXOTp1C4TV2GtMDA%40mail.gmail.com.


Re: LANGUAGE_CODE

2019-08-10 Thread DANIEL URBANO DE LA RUA
It may be not getting yor locale from your folders

On Sun, 28 Jul 2019, 20:09 Yves de Champlain  HI
>
> Django translation works very well for me, except that when I try to
> change LANGUAGE_CODE in settings.py, my site remains in French. I need to
> change my OS system settings to see the English version.
>
> I have two languages, English as default and a French Translation.
>
> LANGUAGES = (
> ('en', _('English')),
> ('fr', _('French')),
> )
>
> LANGUAGE_CODE = 'en'
>
> Thanks for your insights !
>
> yves
>
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/3a301603-3237-4674-9d8d-2f6362d3154e%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO_yRT3KrYF5V7LnogT99KNpVngeX74A_CtfaLCdk-bLZrgFMA%40mail.gmail.com.


Re: LANGUAGE_CODE

2019-08-10 Thread DANIEL URBANO DE LA RUA
Prefix_default_language in urls file inside i18n_patterns

On Sun, 28 Jul 2019, 20:09 Yves de Champlain  HI
>
> Django translation works very well for me, except that when I try to
> change LANGUAGE_CODE in settings.py, my site remains in French. I need to
> change my OS system settings to see the English version.
>
> I have two languages, English as default and a French Translation.
>
> LANGUAGES = (
> ('en', _('English')),
> ('fr', _('French')),
> )
>
> LANGUAGE_CODE = 'en'
>
> Thanks for your insights !
>
> yves
>
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/3a301603-3237-4674-9d8d-2f6362d3154e%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO_yRT3A1-b2bbn-cJxXr6NPH5aSgVTLp_%3DaBuTneG-re_mGKg%40mail.gmail.com.


Re: Hosting para demostración

2019-08-09 Thread DANIEL URBANO DE LA RUA
Puedes abrir un puerto en tu router y haces un port forward de tu
aplicación sobre la 0 0 0 0 o tu ip y haz un curl ifconfig.me y tendras tu
ip publica

On Fri, 9 Aug 2019, 19:58 Gabriel Araya Garcia  ¿Donde y como subir mi proyecto básico en calidad de demostracion?. Es muy
> basico, con apenas 60 registros, en Sqlite3. Necesito mostrar el estado de
> avance para un cliente. He intentado subir a Heroku, pero me ha sido
> imposible, pues me alega sobre la mi version de Python 3.7.4 cabe señalar
> que Heroku tolera solo 3 versiones de Python (la pagina así lo informa). El
> mensaje de error es:
>
> "Push rejected, file to compile Python app"
>
>
> Python 3.7.3, 3.6.8, y 2.7.16
>
> Por supuesto he efectuado todas las modificaciones al setting.py, creando
> los archivos y carpetas necesarios (requierements.txt, profile, local,..etc)
> Estoy trabajando con Django version 2.1.7
>
> En consecuencia, necesito una alternativa para subir mi proyecto
>
> Desde ya agradezco la ayuda que me puedes brindar.
>
> Saludos
> gabrielaraya2...@gmail.com
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/5fb08f5c-1e99-4193-a27c-a9c6cea184bb%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO_yRT3O3P0hVW%2BSC5Vj4AhtgvRUEY%3D6n5u7ftHVC4DSdj5QLw%40mail.gmail.com.


Re: Hosting para demostración

2019-08-09 Thread DANIEL URBANO DE LA RUA
Port forwarding and give then you outbound ip

On Fri, 9 Aug 2019, 20:11 Miguel Ángel Cumpa Ascuña <
miguel.cumpa.asc...@gmail.com wrote:

> Hola Gabriel, quizá este tutorial te pueda ayudar
> https://help.pythonanywhere.com/pages/DeployExistingDjangoProject/
> Saludos
>
> El vie., 9 ago. 2019 a las 12:57, Gabriel Araya Garcia (<
> gabrielaraya2...@gmail.com>) escribió:
>
>> ¿Donde y como subir mi proyecto básico en calidad de demostracion?. Es
>> muy basico, con apenas 60 registros, en Sqlite3. Necesito mostrar el estado
>> de avance para un cliente. He intentado subir a Heroku, pero me ha sido
>> imposible, pues me alega sobre la mi version de Python 3.7.4 cabe señalar
>> que Heroku tolera solo 3 versiones de Python (la pagina así lo informa). El
>> mensaje de error es:
>>
>> "Push rejected, file to compile Python app"
>>
>>
>> Python 3.7.3, 3.6.8, y 2.7.16
>>
>> Por supuesto he efectuado todas las modificaciones al setting.py, creando
>> los archivos y carpetas necesarios (requierements.txt, profile, local,..etc)
>> Estoy trabajando con Django version 2.1.7
>>
>> En consecuencia, necesito una alternativa para subir mi proyecto
>>
>> Desde ya agradezco la ayuda que me puedes brindar.
>>
>> Saludos
>> gabrielaraya2...@gmail.com
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/5fb08f5c-1e99-4193-a27c-a9c6cea184bb%40googlegroups.com
>> 
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAOZHYKPofsVBk5hznMm4HEejxiSOg5ZbRittGGX33%2BAThSmD3Q%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO_yRT2F%3D5TndvKWLS%3DQNoWTFjLK0XDEpvTtfsAY2UwmCkB2Eg%40mail.gmail.com.


Re: SyntaxError: positional argument follows keyword argument

2019-08-08 Thread DANIEL URBANO DE LA RUA
Show the imports o  your file

On Thu, 8 Aug 2019, 18:36 Kasper Laudrup  Hi Kean,
>
> On 08/08/2019 17.59, Kean wrote:
> > Hi,
> >
> > New to Django for the expression below, i get
> >
> > def breg(request):
> > form = UserCreationForm()
> > return render(request=request, template_name="source/breg.html",
> > {'forms':form})
> >
> >   I get the following error
> >
> > SyntaxError: positional argument follows keyword argument
> >
> >   Please can anyone help?
> >
>
> This is not really something special to Django. This is pretty basic
> Python. Maybe something like this will help:
>
> https://www.programiz.com/python-programming/function-argument
>
> Kind regards,
>
> Kasper Laudrup
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/df720f0c-84aa-7611-bdcd-65793a5bdfea%40stacktrace.dk
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO_yRT3%2BAts9-sv%3DcshvryKywHU%2B2Sqq8MNdg5Hg5zHhz-y3rQ%40mail.gmail.com.


Re: Help me!

2019-08-06 Thread DANIEL URBANO DE LA RUA
If you use the same name for three values you will have a array on the get
or post then you have to no the order
And for the filter use filters from your model to get the right car if that
what you need ;)

On Wed, 7 Aug 2019, 01:00 Ronaldo Mata  Hello! I would like you to help me implement a filter form, I put them in
> cotexts:
>
> Example:
> I have a website about cars, I created my Car model with attributes such
> as:
> - colour
> - make
> - model
> - price
>
> Now I want to find a way to make a filtering using a form, the case is
> that the form will have three input type drop-down, [make, model, price],
> when the user selects a make the model input must display only the models
> available for that make, how to achieve that?
>
> Is it necessary to implement a Make and Model model and associate them
> with Car by a foreign key?
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAP%3DoziTmabU-O0GmSZUr-BUWkYHzuFCLV1zyO4t-2b4NqCcZMw%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO_yRT2y9tCcJDR0sjwCkcFWSJyr3cJnPc%3DEPesCbqx95ut%3DzA%40mail.gmail.com.


Re: Django Error upon running the system

2019-08-05 Thread DANIEL URBANO DE LA RUA
not configured. You must either define the environment variable
DJANGO_SETTINGS_MODULE y have the trik in the logs

On Tue, 6 Aug 2019, 02:46 Davin Pore  Could you help me to fix this issue. I encountered while running the
> system.
>
> C:\Users\davin.l.pore\Documents\JFETM_BMS\jfetmbox\venv\Scripts\python.exe
> C:/Users/davin.l.pore/Documents/JFETM_BMS/JFETM/Box_Cronjob/box/cronjob/b0302_get_folder_file.py
> Traceback (most recent call last):
>   File
> "C:/Users/davin.l.pore/Documents/JFETM_BMS/JFETM/Box_Cronjob/box/cronjob/b0302_get_folder_file.py",
> line 13, in 
> from box.models import User
>   File
> "C:\Users\davin.l.pore\Documents\JFETM_BMS\JFETM\Box_Cronjob\box\models.py",
> line 17, in 
> class GroupCompany(models.Model):
>   File
> "C:\Users\davin.l.pore\Documents\JFETM_BMS\jfetmbox\venv\lib\site-packages\django\db\models\base.py",
> line 103, in __new__
> app_config = apps.get_containing_app_config(module)
>   File
> "C:\Users\davin.l.pore\Documents\JFETM_BMS\jfetmbox\venv\lib\site-packages\django\apps\registry.py",
> line 252, in get_containing_app_config
> self.check_apps_ready()
>   File
> "C:\Users\davin.l.pore\Documents\JFETM_BMS\jfetmbox\venv\lib\site-packages\django\apps\registry.py",
> line 134, in check_apps_ready
> settings.INSTALLED_APPS
>   File
> "C:\Users\davin.l.pore\Documents\JFETM_BMS\jfetmbox\venv\lib\site-packages\django\conf\__init__.py",
> line 79, in __getattr__
> self._setup(name)
>   File
> "C:\Users\davin.l.pore\Documents\JFETM_BMS\jfetmbox\venv\lib\site-packages\django\conf\__init__.py",
> line 64, in _setup
> % (desc, ENVIRONMENT_VARIABLE))
> django.core.exceptions.ImproperlyConfigured: Requested setting
> INSTALLED_APPS, but settings are not configured. You must either define the
> environment variable DJANGO_SETTINGS_MODULE or call settings.configure()
> before accessing settings.
>
> Process finished with exit code 1
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/c7f195d5-7481-43d2-ba87-7a9540286714%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO_yRT3x-rvXoy9ZGH3fSZWrkLRGbpik9aWbKFXrOgxzFdJTwg%40mail.gmail.com.


Re: error in models

2019-08-05 Thread DANIEL URBANO DE LA RUA
Is 200 not '200'

On Mon, 5 Aug 2019, 17:24 Mudasir Mian  Dear Team,
> im facing this error in models
> help me please
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAPoXitiJ5ofvswBE7Zjz72RGNoUunHmgoEi5PEOMsCC5-xHNRA%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO_yRT38yTAUagZwq%3D2QebuTvGSykRj92-h-Y1LygUMtDhYZqg%40mail.gmail.com.


Re: error in models

2019-08-05 Thread DANIEL URBANO DE LA RUA
Is an integer not string 200

On Mon, 5 Aug 2019, 17:24 Mudasir Mian  Dear Team,
> im facing this error in models
> help me please
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAPoXitiJ5ofvswBE7Zjz72RGNoUunHmgoEi5PEOMsCC5-xHNRA%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO_yRT2yf%3Dvforp5PXQS4c4v6iDSPp1dXVcU_%2BQpo9yKRV_gfg%40mail.gmail.com.


Re: Developing E - Commerce Website

2019-07-23 Thread DANIEL URBANO DE LA RUA
tanks to you mate, we are here for to make you bigger haha ;)

El martes, 23 de julio de 2019, 15:40:00 (UTC+2), Lim Kai Wey escribió:
>
> Alright, thank you guys so much for the resources! I’ll take a look into 
> them! 
> Thank you guys so much for helping! :)
>
> Regards,
> Kai Wey
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/93e8a9a3-10a5-4f9d-a042-c840af9ff19b%40googlegroups.com.


Re: Developing E - Commerce Website

2019-07-23 Thread DANIEL URBANO DE LA RUA

https://getsaleor.com/ <_here is 
 

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/058b2111-d28b-4974-80e3-a17a4cd6568d%40googlegroups.com.


Re: Developing E - Commerce Website

2019-07-23 Thread DANIEL URBANO DE LA RUA
Hey take a look to Saleor eccomenrce made on python you have a great 
example there

El martes, 23 de julio de 2019, 13:35:15 (UTC+2), Lim Kai Wey escribió:
>
> Greetings,
>
> A new Django user here. I would like to ask if anyone could recommend any 
> guides or tips in developing the functionalities in an E-Commerce website 
> e.g.( Add to Cart). 
> As well as the model setup for the products, is it better to have the all 
> the products underneath one model OR it is better to separate them like, 
> Book (Have all the fields required for books), Book Instance(Availability 
> Check Box, UUID to keep track of transaction etc. etc.
>
> Sorry for the long question. Thanks for reading and hope to hear some 
> favorable replies.
> Thank you once again!
>
> Regards,
> Kai Wey
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/8b39bf3d-c2de-452d-ad5c-35b206d90c9f%40googlegroups.com.


Re: Developing E - Commerce Website

2019-07-23 Thread DANIEL URBANO DE LA RUA
Check saleor ecommerce made on python it just easier to modify it ;)

On Tue, 23 Jul 2019, 13:35 Lim Kai Wey  Greetings,
>
> A new Django user here. I would like to ask if anyone could recommend any
> guides or tips in developing the functionalities in an E-Commerce website
> e.g.( Add to Cart).
> As well as the model setup for the products, is it better to have the all
> the products underneath one model OR it is better to separate them like,
> Book (Have all the fields required for books), Book Instance(Availability
> Check Box, UUID to keep track of transaction etc. etc.
>
> Sorry for the long question. Thanks for reading and hope to hear some
> favorable replies.
> Thank you once again!
>
> Regards,
> Kai Wey
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/0227c538-6c00-4afa-9e3a-a09f543d1c8c%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO_yRT0SmGkWxEOMP2kJc%3DJGmb7gJaGcLxs6fahPXhwHhVRbpw%40mail.gmail.com.


Re: Usar confirmacion de correo para crear un nuevo usuario ?? ayuda!!! soy nuevo en este framework

2019-07-20 Thread DANIEL URBANO DE LA RUA
hay muchos ejemplos en google pero si quieres te paso uno


El sáb., 20 jul. 2019 a las 13:31, Alvaro Puerto (<
alvaroevenor.puertotel...@gmail.com>) escribió:

> Lo que quiero es un ejemplo de como crear un registro con una confirmacion
> de correo uso django 2.2.2
> pero no se como empezar?
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/26c0a4ae-4bc8-4b7a-ae3a-d2b431e7dece%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO_yRT3HGdbG0Xjrg4rY32dK3Gxp%3DrZhemTYjBv2L8ZEoWZihg%40mail.gmail.com.


Deploying Django app with Channels on a Shared Linux Hosting

2019-07-15 Thread DANIEL URBANO DE LA RUA
Yo have to use daphne to deploy asgi application is all not uwsgi

-- 
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 email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/dcfaff1f-6c3c-4b03-866c-633f45e83707%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Docker: NGINX, Postgres, Django, Static, Media Files

2019-07-14 Thread DANIEL URBANO DE LA RUA
Go check saleor Ci , saelor ecommerce is on github ,and you will have an
idea they dont have a nginx containers but it can help you ;)

On Sun, 14 Jul 2019, 14:49 Sebastian Jung  Hello,
>
> i want i complete ready Docker Container for production that accept all
> Host of wourld on port 80. I want a docker container for Nginx another for
> Postgres another for Django and static Files and another container for
> Media Files. I have not enought experience to get a manual like this:
> https://github.com/Pawamoy/docker-nginx-postgres-django-example
>
> Can someone give me a package to download?
>
> Regards
>
> --
> 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 email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/d6250ecd-3d5f-4851-85df-fe1da77ce883%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO_yRT1h5hY9H5%3D74oFas5dkCUK1JuPKPAQUGxA%2BdXP_%2BiOF8g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.