datamllab / rlcard-showdown

Leaderboard and Visualization for RLCard
357 stars 98 forks source link

python3 manage.py migrate not working #15

Closed amirfarazmand closed 3 years ago

amirfarazmand commented 3 years ago

I am running this on Windows 10 in both Windows Poer Shell and Pycharm platform but when I run this

python3 manage.py migrate

I get these issues:

System check identified some issues:

WARNINGS:
tournament.Game: (models.W042) Auto-created primary key used when not defining a primary key type, by default 'django.db.models.AutoField'.
        HINT: Configure the DEFAULT_AUTO_FIELD setting or the TournamentConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.model
s.BigAutoField'.
tournament.Payoff: (models.W042) Auto-created primary key used when not defining a primary key type, by default 'django.db.models.AutoField'.
        HINT: Configure the DEFAULT_AUTO_FIELD setting or the TournamentConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.model
s.BigAutoField'.
tournament.UploadedAgent: (models.W042) Auto-created primary key used when not defining a primary key type, by default 'django.db.models.AutoField'.
        HINT: Configure the DEFAULT_AUTO_FIELD setting or the TournamentConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.model
s.BigAutoField'.
Operations to perform:
  Apply all migrations: admin, auth, contenttypes, sessions, tournament
Running migrations:
  No migrations to apply.

This causes the server to not run properly.

Page not found (404)
Request Method: GET
Request URL:    http://127.0.0.1:8000/
Using the URLconf defined in server.urls, Django tried these URL patterns, in this order:

tournament/
admin/
The empty path didn’t match any of these.

You’re seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 404 page.
amirfarazmand commented 3 years ago

After I ran also this in a second terminal npm start

The app is working fine.

daochenzha commented 3 years ago

After I ran also this in a second terminal

npm start

The app is working fine.

@amirfarazmand Os this issue resolved?

amirfarazmand commented 3 years ago

Yes, I used the repo on pycharm CE and it works fine.