Defining Models outside models.py

2019-07-25 Thread Sam Taiwo
Hi everyone, I know there are currently 3 ways to define a model in Django 1) Define it directly in the models.py file 2) Define it directly in a models package in the same directory as your other app files 3) Define it somewhere completely different and just import the models into the models.py

Re: Minimum Hardware requirement - reg

2019-06-25 Thread Sam Taiwo
I think think the first advice is way off base in two ways. 1) It's not clumsy to have 8 apps if that is the the structure of the project that makes each part encapsulated and reusable. 2) 30 concurrent users in one app can be more demanding than 1000 in another. It really depends on what each us

Re: Any open source project for beginner to start with ?

2019-05-15 Thread Sam Taiwo
Hi, If you believe you are ready for open-source contribution, a good start would be just contributing back to Django. https://code.djangoproject.com/query?status=!closed&easy=1&stage=Accepted&order=priority Here you can find "easy" ways to contribute. If you don't feel like you are still up to t

Re: Channels & WebSocket - failed: Error during WebSocket handshake: Unexpected response code: 403

2019-03-11 Thread Sam Taiwo
I'm not sure, but it looks like you are trying to connect to a localhost which is fine locally but not in production. You probably need to change your frontend code to route properly. This is all speculation as you have not shown your application code, I don't think you'll get many good answers...

Re: how to create a Django project without using an IDE, but using the django-admin startproject command

2019-03-10 Thread Sam Taiwo
Make sure your virtual environment is activated, you have to activate it each time you create a new terminal. Also contrary to what someone else said, you can use django-admin anywhere, while you must be in the correct directory to run the manage.py file On Sun, Mar 10, 2019, 07:38 abel otugeme

Re: Django credit card redaction app - - MultiValueDictKeyError

2019-03-07 Thread Sam Taiwo
I would be careful how you pass the data on get, somewhere in your front end code you are probably not passing the data through as you expected. Instead of using .GET, use .GET.get to get your data. This will either return the value you want, or none. I think you have made the error of not passing

Re: REST Framework alternatives

2019-02-05 Thread Sam Taiwo
What validation does he specifically need? He could probably get away with writing a few helper functions himself! On Tue, Feb 5, 2019, 17:50 Miguel Ángel Cumpa Ascuña < miguel.cumpa.asc...@gmail.com wrote: > Django tastypie > good luck! > https://django-tastypie.readthedocs.io/en/latest/toc.html

ChannelsLiveServerTestCase Apps are not loaded error

2018-12-31 Thread Sam Taiwo
I am trying to follow the 4 part channels tutorial, however I am getting an error on the last part where we run selenium to test against a live server. It's not the end of the world as I can still run the server with no problems, however it limits my ability to test which is a shame. I have the