Re: AWS API or EC2 for chat?

2020-03-24 Thread Motaz Hejaze
Any hint how you built the chat without channels ? Because i realy hate its complixity .. On Wed, 25 Mar 2020, 4:30 am Yoo, wrote: > Hi all! I built a chat app without dj channels, but now I’m stuck with > pricing... and just AWS in general. Every time I look up Websockets, I’m > told to use

Re: AWS API or EC2 for chat?

2020-03-24 Thread Andrew C.
I’ve figured my original question out. API Gateway is usually paired with Lambda. They scale easily, but I’m pretty much expecting 24/7 usage, which Lambda isn’t the best option for(???). I use cookiecutter-django, so I’ll be using ECS. Unfortunately, costs are sky high... If anyone’s able to help

Re: Error running Django tutorial

2020-03-24 Thread kyle D
I'm using Django for a class, and came across this thread and thought I'd post what fixed it for me in case someone else has the same issue I did. Makes sure your mysite/urls.py is the one that has the urlpatterns[] with the path to your polls and not the mysite/polls/urls.py. This one:

Re: django search page not found error

2020-03-24 Thread Motaz Hejaze
Add null=True to manytomany field On Wed, 25 Mar 2020, 2:02 am omid jahadi, wrote: > Hello everybody! I want to search in a ManyToManyField in the DetailView. > It works fine if a user with the same query exist, but if there isn't a > user, i get page not found error. > > models.py: > > class

AWS API or EC2 for chat?

2020-03-24 Thread Yoo
Hi all! I built a chat app without dj channels, but now I’m stuck with pricing... and just AWS in general. Every time I look up Websockets, I’m told to use AWS API Gateway. Why? And if so, how would I split my project between EC2 for website and API Gateway for my mobile users and for chats?

Re: AWS API or EC2 for chat?

2020-03-24 Thread Andrew C.
The only hint I can freely provide is to use celery tasks. They let you do taskname.delay(pk_user1, for_chat_pk). You can look online for an article with the url dev.to to setup your asgi.py file. That’s all I can freely give out, though. Good luck! On Tue, Mar 24, 2020 at 10:40 PM Motaz Hejaze

Re: AWS API or EC2 for chat?

2020-03-24 Thread Motaz Hejaze
That was unexpected , i thaught about using python module socketio On Wed, 25 Mar 2020, 5:08 am Andrew C., wrote: > The only hint I can freely provide is to use celery tasks. They let you do > taskname.delay(pk_user1, for_chat_pk). You can look online for an article > with the url dev.to to

Creating a new Django project, Stuck with the very first steps

2020-03-24 Thread Rodolphe Gohard
Hello, I am wanting to create a django project. I followed the instructions on installing django here: https://docs.djangoproject.com/en/3.0/intro/install/ and here: https://docs.djangoproject.com/en/3.0/intro/tutorial01/ But I have encountered multiple problems and am stuck. My env: Ubuntu

Re: Django 3.0 alpha 1 released

2020-03-24 Thread Mohit Agarwal
Echoing to Benjamin's question, are we working on supporting MSSQL in Django 3.0? I have read from thee forums that the author of django-pyodbc-azure is working with django to make it part of its core offerings? Is it true and what are the

Re: Creating a new Django project, Stuck with the very first steps

2020-03-24 Thread Bruno Santos
Hello, try to uninstall python and install again. Have just one installation of python, 2.7 or 3.5.2 Em ter, 24 de mar de 2020 08:11, Rodolphe Gohard escreveu: > Hello, I am wanting to create a django project. > > I followed the instructions on installing django here: >

Re: Creating a new Django project, Stuck with the very first steps

2020-03-24 Thread Akinfolarin Stephen
to create your first django project first install python on your sysytem after that you check if you have pip on your sysytem of course it will be there to check use ths command: pip --version after that install a virtual environment in case you don't know what virtual environment is it help

Re: Problem with migrations order

2020-03-24 Thread Akinfolarin Stephen
make sure you tell django that you have make changes the by running this python manage.py makemigrations after that enter python manage.py migrate it will automatically update your database On Tuesday, March 24, 2020 at 7:36:31 PM UTC+14, Yves de Champlain wrote: > > Hi > > I added a new app

Re: Creating a new Django project, Stuck with the very first steps

2020-03-24 Thread Andréas Kühne
Hi, First of all - you need to make sure you are using the python 3 version for everything - you can't mix and match python versions. So make sure that python 3 is the version you are using for everything, Second - python 3.5.2 is an old version of python 3 - you need at least version 3.6 for

Re: Problem with migrations order

2020-03-24 Thread Yves de Champlain
Hi Thanks for your answer. Actually, I'm working on a clean migrate : find . -path "*/migrations/*.py" -not -name "__init__.py" -not -path "./data/*" -delete find . -path "*/migrations/*.pyc" -delete psql -U postgres $DB_NAME < > make sure you tell django that you have make changes the by

Re: Creating a new Django project, Stuck with the very first steps

2020-03-24 Thread Rodolphe Gohard
Hello, thanks for your answer. I installed python 3.6 from another PPA and it works fine now. I just wish pip were aware of those requirements. On Tuesday, March 24, 2020 at 1:35:03 PM UTC+1, Andréas Kühne wrote: > > Hi, > > First of all - you need to make sure you are using the python 3

Re: Creating a new Django project, Stuck with the very first steps

2020-03-24 Thread Andréas Kühne
The thing is - it should be - the packages are marked for each version. However with the mixup of python versions and also how you install it - I think the problem was increased because you installed in different ways and probably not only in the virtual environment. But great that you got it

Django 3.0 Admin CHange Page Not Displaying Selected Option Correctly

2020-03-24 Thread Mark Phillips
I am running Django 3.0 and using Chrome Version 80.0.3987.132 (Official Build) (64-bit) and Firefox version 74 (64-bit). I have a select box on an admin change page for a model, and the correct value from the database is shown this way on the html source page generated by django: Frank Sam Henry

How can I delete the parent object related through a many to many field?

2020-03-24 Thread Mark Phillips
I have three related models - Document, Collection, and CollectionDocument. A Collection object is made up of a group of documents. class Document(Model): document_id = models.AutoField(primary_key=True) class Collection(Model): collection_id = models.AutoField(primary_key=True)

Sql server and django

2020-03-24 Thread hajar Benjat
Hello django users I hope you are doing well! I want to connect my django application and makemigrations with sql server 2008. But I get some errors you can see below. I hope you can help me. Cordially -- You received this message because you are subscribed to the Google Groups "Django users"

Re: Problem extracting month Djongo / MongoDB

2020-03-24 Thread Eswar Subramanyam
Does someone have any idea of any other groups on which i can get help on my question ? Thanks. BR Es. Le lundi 23 mars 2020 16:14:37 UTC+1, Eswar Subramanyam a écrit : > > I am using MongoDB as underlying DB with Django. > > pipeline = { > 'price' : Sum('price'), >

django search page not found error

2020-03-24 Thread omid jahadi
Hello everybody! I want to search in a ManyToManyField in the DetailView. It works fine if a user with the same query exist, but if there isn't a user, i get page not found error. models.py: class agents(models.Model): agent_type = models.ForeignKey(types, on_delete=models.SET_NULL,