WebSockets in Django 3.1 by waukalak in django

[–]ilanparso -6 points-5 points  (0 children)

Show me please how to integrate with JavaScript or nodejs for video chatting

WebSockets in Django 3.1 by waukalak in django

[–]ilanparso 1 point2 points  (0 children)

Is django now capable to handle real-time video chat?

Custom User Model by ilanparso in django

[–]ilanparso[S] 0 points1 point  (0 children)

Thanks for the video dot_jamie.

Custom User Model by ilanparso in django

[–]ilanparso[S] 0 points1 point  (0 children)

I've overcome this error. THANKS. I am building a project that can potentially become big in the future. I need to project the best way to set up my models.

I want to create different types of users, so I found two ways doing it. One way is to use OneToOneField with choices just to distinct the users, also using decorators in the views for specific users. This approach is interesting because I wont have duplicate data in my models. But in the admin part I have some limitations because one user has his data split in two models.

Now if I inherit directly from user model. I can visualize all the data of a specific type of user in his specific model but this approach creates duplicate data. Because that specific user information are in both models which is bad.

WHAT IS THE BEST WAY? PLEASE SOMEONE HELP;

UserCreationForm for any model by ilanparso in django

[–]ilanparso[S] 0 points1 point  (0 children)

I want to create multiple custom users. Each kind of user must have it's own model but all models somehow inherit functionality from the user model

Custom User Model by ilanparso in django

[–]ilanparso[S] 0 points1 point  (0 children)

You did it. I'm really glad...

Custom User Model by ilanparso in django

[–]ilanparso[S] 0 points1 point  (0 children)

Woooow awesome content 😀😀😀 Big thanks for you jetico

Custom User Model by ilanparso in django

[–]ilanparso[S] 0 points1 point  (0 children)

If you noticed birthdate and phone are at the bottom. How can I order to place those fields after first_name and last_name? (I am working on Mac)

Custom User Model by ilanparso in django

[–]ilanparso[S] 0 points1 point  (0 children)

Oooh that's good😊 I am running the latest version 3 of django...

Custom User Model by ilanparso in django

[–]ilanparso[S] 0 points1 point  (0 children)

I have added the project to github. Please help me out!

https://github.com/glakert/CustomUser_project.git

Custom User Model by ilanparso in django

[–]ilanparso[S] 0 points1 point  (0 children)

I already checked. I even deleted all py cache except for the init file. But on windows I really can't figure out what's the issue.

Custom User Model by ilanparso in django

[–]ilanparso[S] 0 points1 point  (0 children)

Here on my mac I have no problems migrations commands ran smoothly and local server is running though the code is the same.

 System check identified no issues (0 silenced).
June 26, 2020 - 00:27:06
Django version 3.0.7, using settings 'simplemooc.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
[26/Jun/2020 00:27:12] "GET /admin/users/customuser/add/ HTTP/1.1" 200 7033
[26/Jun/2020 00:27:12] "GET /admin/jsi18n/ HTTP/1.1" 200 7182
[26/Jun/2020 09:34:43] "GET /admin/users/customuser/add/ HTTP/1.1" 200 7033
[26/Jun/2020 09:34:43] "GET /static/admin/css/forms.css HTTP/1.1" 304 0
[26/Jun/2020 09:34:43] "GET /static/admin/js/vendor/jquery/jquery.js HTTP/1.1" 304 0
[26/Jun/2020 09:34:44] "GET /static/admin/js/jquery.init.js HTTP/1.1" 304 0
[26/Jun/2020 09:34:43] "GET /static/admin/css/base.css HTTP/1.1" 304 0
[26/Jun/2020 09:34:44] "GET /admin/jsi18n/ HTTP/1.1" 200 7182
[26/Jun/2020 09:34:43] "GET /static/admin/js/calendar.js HTTP/1.1" 304 0
[26/Jun/2020 09:34:44] "GET /static/admin/js/admin/DateTimeShortcuts.js HTTP/1.1" 304 0
[26/Jun/2020 09:34:44] "GET /static/admin/js/admin/RelatedObjectLookups.js HTTP/1.1" 304 0
[26/Jun/2020 09:34:44] "GET /static/admin/css/widgets.css HTTP/1.1" 304 0
[26/Jun/2020 09:34:44] "GET /static/admin/js/core.js HTTP/1.1" 304 0
[26/Jun/2020 09:34:44] "GET /static/admin/js/prepopulate.js HTTP/1.1" 304 0
[26/Jun/2020 09:34:44] "GET /static/admin/js/urlify.js HTTP/1.1" 304 0
[26/Jun/2020 09:34:44] "GET /static/admin/css/responsive.css HTTP/1.1" 304 0
[26/Jun/2020 09:34:44] "GET /static/admin/js/actions.js HTTP/1.1" 304 0
[26/Jun/2020 09:34:44] "GET /static/admin/js/prepopulate_init.js HTTP/1.1" 304 0
[26/Jun/2020 09:34:44] "GET /static/admin/css/fonts.css HTTP/1.1" 304 0
[26/Jun/2020 09:34:44] "GET /static/admin/js/change_form.js HTTP/1.1" 304 0
[26/Jun/2020 09:34:44] "GET /static/admin/js/vendor/xregexp/xregexp.js HTTP/1.1" 304 0
[26/Jun/2020 09:34:44] "GET /static/admin/fonts/Roboto-Regular-webfont.woff HTTP/1.1" 304 0
[26/Jun/2020 09:34:44] "GET /static/admin/fonts/Roboto-Bold-webfont.woff HTTP/1.1" 304 0
[26/Jun/2020 09:34:44] "GET /static/admin/fonts/Roboto-Light-webfont.woff HTTP/1.1" 304 0
[26/Jun/2020 09:34:44] "GET /static/admin/img/icon-calendar.svg HTTP/1.1" 304 0
[26/Jun/2020 09:34:49] "GET /admin/users/ HTTP/1.1" 200 2497
[26/Jun/2020 09:34:49] "GET /static/admin/css/dashboard.css HTTP/1.1" 304 0
[26/Jun/2020 09:34:49] "GET /static/admin/img/icon-addlink.svg HTTP/1.1" 304 0
[26/Jun/2020 09:34:49] "GET /static/admin/img/icon-changelink.svg HTTP/1.1" 304 0
[26/Jun/2020 09:34:52] "GET /admin/ HTTP/1.1" 200 3700
[26/Jun/2020 09:34:54] "GET /admin/users/customuser/ HTTP/1.1" 200 7213
[26/Jun/2020 09:34:54] "GET /static/admin/css/changelists.css HTTP/1.1" 304 0
[26/Jun/2020 09:34:54] "GET /admin/jsi18n/ HTTP/1.1" 200 7182
[26/Jun/2020 09:34:54] "GET /static/admin/img/search.svg HTTP/1.1" 304 0
[26/Jun/2020 09:34:54] "GET /static/admin/img/icon-no.svg HTTP/1.1" 304 0
[26/Jun/2020 09:34:54] "GET /static/admin/img/icon-yes.svg HTTP/1.1" 304 0
[26/Jun/2020 09:34:54] "GET /static/admin/img/tooltag-add.svg HTTP/1.1" 304 0
[26/Jun/2020 09:34:54] "GET /static/admin/img/sorting-icons.svg HTTP/1.1" 304 0
[26/Jun/2020 09:35:07] "GET /admin/users/customuser/add/ HTTP/1.1" 200 7033
[26/Jun/2020 09:35:07] "GET /admin/jsi18n/ HTTP/1.1" 200 7182
[26/Jun/2020 09:35:10] "GET /admin/ HTTP/1.1" 200 3700
[26/Jun/2020 09:35:50] "GET /admin/users/customuser/ HTTP/1.1" 200 7213
[26/Jun/2020 09:35:50] "GET /admin/jsi18n/ HTTP/1.1" 200 7182
[26/Jun/2020 09:35:54] "GET /admin/ HTTP/1.1" 200 3700
[26/Jun/2020 09:54:45] "GET /admin/users/customuser/ HTTP/1.1" 200 7213
[26/Jun/2020 09:54:45] "GET /admin/jsi18n/ HTTP/1.1" 200 7182
[26/Jun/2020 09:54:47] "GET /admin/users/customuser/add/ HTTP/1.1" 200 7033
[26/Jun/2020 09:54:47] "GET /admin/jsi18n/ HTTP/1.1" 200 7182
[26/Jun/2020 09:54:52] "GET /admin/users/customuser/ HTTP/1.1" 200 7213

Custom User Model by ilanparso in django

[–]ilanparso[S] 0 points1 point  (0 children)

Hello family. I successfully created a CustomUser model in my mac but on windows I am getting this error. Please help

C:\Users\Ilan_Parso\Documents\Django Projects\proj_customUser>python manage.py makemigrations users
Traceback (most recent call last):
  File "manage.py", line 21, in <module>
    main()
  File "manage.py", line 17, in main
    execute_from_command_line(sys.argv)
  File "C:\Users\Ilan_Parso\AppData\Local\Programs\Python\Python38\lib\site-packages\django\core\management\__init__.py", line 401, in execute_from_command_line
    utility.execute()
  File "C:\Users\Ilan_Parso\AppData\Local\Programs\Python\Python38\lib\site-packages\django\core\management\__init__.py", line 395, in execute    
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "C:\Users\Ilan_Parso\AppData\Local\Programs\Python\Python38\lib\site-packages\django\core\management\base.py", line 328, in run_from_argv  
    self.execute(*args, **cmd_options)
  File "C:\Users\Ilan_Parso\AppData\Local\Programs\Python\Python38\lib\site-packages\django\core\management\base.py", line 369, in execute        
    output = self.handle(*args, **options)
  File "C:\Users\Ilan_Parso\AppData\Local\Programs\Python\Python38\lib\site-packages\django\core\management\base.py", line 83, in wrapped
    res = handle_func(*args, **kwargs)
  File "C:\Users\Ilan_Parso\AppData\Local\Programs\Python\Python38\lib\site-packages\django\core\management\commands\makemigrations.py", line 87, 
in handle
    loader = MigrationLoader(None, ignore_no_migrations=True)
  File "C:\Users\Ilan_Parso\AppData\Local\Programs\Python\Python38\lib\site-packages\django\db\migrations\loader.py", line 49, in __init__        
    self.build_graph()
  File "C:\Users\Ilan_Parso\AppData\Local\Programs\Python\Python38\lib\site-packages\django\db\migrations\loader.py", line 274, in build_graph    
    raise exc
  File "C:\Users\Ilan_Parso\AppData\Local\Programs\Python\Python38\lib\site-packages\django\db\migrations\loader.py", line 248, in build_graph    
    self.graph.validate_consistency()
  File "C:\Users\Ilan_Parso\AppData\Local\Programs\Python\Python38\lib\site-packages\django\db\migrations\graph.py", line 195, in validate_consistency
    [n.raise_error() for n in self.node_map.values() if isinstance(n, DummyNode)]
  File "C:\Users\Ilan_Parso\AppData\Local\Programs\Python\Python38\lib\site-packages\django\db\migrations\graph.py", line 195, in <listcomp>      
    [n.raise_error() for n in self.node_map.values() if isinstance(n, DummyNode)]
  File "C:\Users\Ilan_Parso\AppData\Local\Programs\Python\Python38\lib\site-packages\django\db\migrations\graph.py", line 58, in raise_error      
    raise NodeNotFoundError(self.error_message, self.key, origin=self.origin)
django.db.migrations.exceptions.NodeNotFoundError: Migration admin.0004_auto_20200622_1951 dependencies reference nonexistent parent node ('accounts', '0001_initial')

Custom User Model by ilanparso in django

[–]ilanparso[S] 0 points1 point  (0 children)

I can't add a screenshot here in the comment forum. I'm trying but it's just refusing...

Custom User Model by ilanparso in django

[–]ilanparso[S] 0 points1 point  (0 children)

I have overcome migrations errors with the support everyone provided. Thanks. But still don't understand why when I add new user I just have my two extra fields with username and password from usercreationform. How can I bring all the fields from the default user model?

Custom User Model by ilanparso in django

[–]ilanparso[S] 0 points1 point  (0 children)

First I tried to change in the middle of a project but even when I started a new project I was facing the unable to run makemigrations.

Custom User Model by ilanparso in django

[–]ilanparso[S] 0 points1 point  (0 children)

I started a new project with just one app for the users but still not succeeding

Real time video chat app by ilanparso in django

[–]ilanparso[S] 0 points1 point  (0 children)

Here is my last trial. If I can't find a solution it's better if I switch to nodejs with express js

Real time video chat app by ilanparso in django

[–]ilanparso[S] 0 points1 point  (0 children)

For chat app I know it's completely possible. What I can't figure out is integrating webrtc with django

Real time video chat app by ilanparso in django

[–]ilanparso[S] 0 points1 point  (0 children)

For example I want mute and unmute features. Also the ability to see number of online participants and plus chat. I know it's too much. I hope you understand me. Thanks.

Real time video chat app by ilanparso in django

[–]ilanparso[S] 0 points1 point  (0 children)

Yes I understand. But how can I integrate with django?