Re: [PROBLEM] Creacion de primera apps de djangogirls, error en models.py

2020-04-19 Thread lucas bonet
Si, seguí toda la instalación de djangogirls que la instala con Pip El El dom, 19 abr. 2020 a la(s) 22:22, Gavin Wiener escribió: > ¿Has instalado Django con pip? > > On Saturday, April 18, 2020 at 5:35:22 AM UTC+8, lucas bonet wrote: >> >> Hola, estoy creando la primera aplicacion de django

Re: [PROBLEM] Creacion de primera apps de djangogirls, error en models.py

2020-04-19 Thread Gavin Wiener
¿Has instalado Django con pip? On Saturday, April 18, 2020 at 5:35:22 AM UTC+8, lucas bonet wrote: > > Hola, estoy creando la primera aplicacion de django con pyton y cuando > llega el momento de configurar en el directorio de blog--> model.py copio > las lineas de comando del tutrorial y me

I have a problem concerning duplicate adminfields

2020-04-19 Thread Franklin Tazuh
Hey guys, am getting this error in my django ecommerce website using cartridge , ERRORS: : (admin.E012) There are duplicate field(s) in 'fieldsets[0][1]'. System check identified 1 issue (0 silenced). This is my admin.py file from django.contrib import admin from mezzanine.pages.admin import

Re: CSRF token still needed today?

2020-04-19 Thread Alex Heyden
Django supports samesite on session cookies now, and it's on (set to lax) by default. Whether or not that completely covers your surface risk to CSRF attacks is a somewhat different question. On Sun, Apr 19, 2020 at 3:12 PM guettli wrote: > iI look at this page:

Re: [PROBLEM] Creacion de primera apps de djangogirls, error en models.py

2020-04-19 Thread lucas bonet
Hola Juan, gracias por tu respuesta, te adjunto la imagen de VS para que veas el error. El vie., 17 abr. 2020 a las 19:59, Juan Pablo Romero Bernal (< jromerober...@gmail.com>) escribió: > Saludos Lucas, > > Sería de mucha utilidad que nos mostraras los mensajes de error que > obtienes para >

Re: CSRF token still needed today?

2020-04-19 Thread Jorge Gimeno
On Sun, Apr 19, 2020 at 1:12 PM guettli wrote: > iI look at this page: https://docs.djangoproject.com/en/3.0/ref/csrf/ > ... and then I look at this page: https://scotthelme.co.uk/csrf-is-dead/ > > Is a CSRF token still needed today? > > All my users use a modern browser. > > It would be very

CSRF token still needed today?

2020-04-19 Thread guettli
iI look at this page: https://docs.djangoproject.com/en/3.0/ref/csrf/ ... and then I look at this page: https://scotthelme.co.uk/csrf-is-dead/ Is a CSRF token still needed today? All my users use a modern browser. It would be very nice if I could get rid of the CSRF token. Is there a safe way

Re: [django-channels] How to close websocket connection from server?

2020-04-19 Thread krnrrr
another thing I managed to think of is send specific message to a specific room of a user, like: async_to_sync(channel_layer.group_send)("238", {"type": "send_text", "text": "close"}) and check in consumer's handler: async def send_text(self, event): if event == "close":

Re: Production deployments and Version Control for DJango projects

2020-04-19 Thread JEGATHEESWARAN SUNDARAVADIVEL
Hi , Try Jenkins also for Continuous Integration (CI) Regards Jegatheeswaran sundaravadivel On Sun, 19 Apr 2020 at 22:23, Ram wrote: > Thank you, all. We started with GIT hub and planning to add > ansible-playbook later in our development phase. > > Best regards > ~Ram > > On Sat, Feb 15, 2020

Re: Migrated code is not working in Django

2020-04-19 Thread Ram
Thank you, all. Once we started using GIT process for our first code base deployment, we did not see any issue with deployment. Best regards, ~Ram On Sat, Feb 8, 2020 at 12:22 PM Integr@te System wrote: > Hi Ram, > > plz show error code. > > On Sun, Feb 9, 2020, 01:03 Ram wrote: > >> Hi, >>

Re: Production deployments and Version Control for DJango projects

2020-04-19 Thread Ram
Thank you, all. We started with GIT hub and planning to add ansible-playbook later in our development phase. Best regards ~Ram On Sat, Feb 15, 2020 at 2:55 AM Kasper Laudrup wrote: > Hi Aldian, > > On 15/02/2020 05.57, Aldian Fazrihady wrote: > > Try ansible-playbook > > > > That's exactly

Re: No Reverse Match Error, When creating a new user (new user application) it should direct back to home (to the core application)

2020-04-19 Thread Farai M
You can use Httpresponse(reverse_lazy('appname')) On Sun, Apr 19, 2020, 6:35 AM Ahmed Khairy wrote: > For this project, I have made 2 applications: Core and Users > > Creating a new user is the 2nd application. > I am trying to direct the new user after registration to 'home' > > I keep getting

General Question Regarding Django Password Validation differences

2020-04-19 Thread Ahmed Khairy
I have used UserCreationForm and got this result below with no validations regarding the password while there are other Usercreationforms with password validations. I am using Django 2.2 -- You received this message because you are subscribed to the Google Groups "Django users" group.

Re: [django-channels] How to close websocket connection from server?

2020-04-19 Thread krnrrr
i gave it another shot and still don't get it. when I connect the first time i have: - browser A which serves as a source of "connect" command - AsyncJsonWebsocketConsumer which handles group_add, accepting incoming socket and setting the "connection A" when I have a call from the other

Re: No Reverse Match Error, When creating a new user (new user application) it should direct back to home (to the core application)

2020-04-19 Thread Jorge Gimeno
I would try to replace return redirect('home') with return redirect(reverse('home')) -Jorge On 4/18/20, Motaz Hejaze wrote: > اعمل اسم الفانكشن الحقيقي مكان اسم ال url او استخدم redirect reverse > > On Sun, 19 Apr 2020, 6:35 am Ahmed Khairy, > wrote: > >> For this project, I have made 2

Re: Tutorial "Writing your first Django App": NoReverseMatch at /polls/ - down at the end of part 3

2020-04-19 Thread Jorge Gimeno
If settings.DEBUG == False, then you have to put the allowed addresses in settings.ALLOWED_HOSTS. If Debug is True, then I'm not sure what's going on. -Jorge On 4/18/20, Markus Grossniklaus wrote: > Thanks a lot Chucky! > No error message > displays at least one dot! fine > >

Re: Django Project Created in Pycharm using App Engine Does not include Django boiler files

2020-04-19 Thread Jorge Gimeno
I believe you can still install Django the old fashioned way into your virtual environment, i.e. (with your environment active, and from the command prompt): pip install django django-admin startproject test_project -Jorgge On 4/17/20, kelvin smith wrote: > Guys, I Just started using google

Re: Reg: Django signal not working

2020-04-19 Thread Jorge Gimeno
Amitesh, Where is User.profile defined? -Jorge On 4/18/20, Saurabh Ranjan Singh wrote: > I am having the same issue. Please fix it. > > On Friday, 17 April 2020 22:47:40 UTC+5:30, Amitesh Sahay wrote: >> >> Hi, >> >> I am creating a Django signup form through "User" model and >>

Re: Need help whit DJANGO_SETTINGS_MODULE

2020-04-19 Thread Ilie Ioana
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 > ├──

Re: Need help whit DJANGO_SETTINGS_MODULE

2020-04-19 Thread Ilie Ioana
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

Re: Need help whit DJANGO_SETTINGS_MODULE

2020-04-19 Thread Ayser shuhaib
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

Need help whit DJANGO_SETTINGS_MODULE

2020-04-19 Thread Ilie Ioana
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 >

Re: Django render a DynamoDB JSON into a HTML table

2020-04-19 Thread Daniel Pedrajas Pineda
Here the solution: https://stackoverflow.com/questions/61285947/django-render-a-dynamodb-json-into-a-html-table Thank you to https://stackoverflow.com/users/6460856/swetank-poddar View.py: def history(request): dynamodb_resource('dynamodb') history_table =

Page freezing when loggin into admin

2020-04-19 Thread Dylan Reinhold
I had noticed this on a couple existing projects, but just figured I broke something. But I see this in a couple new projects also. When I log into admin from the first time after my browser is started, i enter my user/password and the data is posted, but I never get a redirect If i immediately

Re: No Reverse Match Error, When creating a new user (new user application) it should direct back to home (to the core application)

2020-04-19 Thread Motaz Hejaze
اعمل اسم الفانكشن الحقيقي مكان اسم ال url او استخدم redirect reverse On Sun, 19 Apr 2020, 6:35 am Ahmed Khairy, wrote: > For this project, I have made 2 applications: Core and Users > > Creating a new user is the 2nd application. > I am trying to direct the new user after registration to 'home'