{"id":20515092,"url":"https://github.com/aleksi44/django-selenium-docker","last_synced_at":"2025-09-25T10:30:36.602Z","repository":{"id":37544012,"uuid":"386948109","full_name":"Aleksi44/django-selenium-docker","owner":"Aleksi44","description":"Demo webapp with Selenium, Docker, Django, Postgresql, Celery, RabbitMQ, Django channels and Redis.","archived":false,"fork":false,"pushed_at":"2021-07-17T16:07:09.000Z","size":79867,"stargazers_count":9,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-15T21:20:13.668Z","etag":null,"topics":["celery","django","django-admin","djangochannels","docker","docker-compose","postgresql","rabbitmq","redis","selenium","selenium-python","selenium-webdriver"],"latest_commit_sha":null,"homepage":"https://alexis-le-baron.com/en/django-selenium-docker/?ref=github","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Aleksi44.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-07-17T13:41:39.000Z","updated_at":"2024-09-10T13:03:01.000Z","dependencies_parsed_at":"2022-08-18T03:11:14.686Z","dependency_job_id":null,"html_url":"https://github.com/Aleksi44/django-selenium-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aleksi44%2Fdjango-selenium-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aleksi44%2Fdjango-selenium-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aleksi44%2Fdjango-selenium-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aleksi44%2Fdjango-selenium-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Aleksi44","download_url":"https://codeload.github.com/Aleksi44/django-selenium-docker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234177661,"owners_count":18791620,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["celery","django","django-admin","djangochannels","docker","docker-compose","postgresql","rabbitmq","redis","selenium","selenium-python","selenium-webdriver"],"created_at":"2024-11-15T21:19:38.656Z","updated_at":"2025-09-25T10:30:32.387Z","avatar_url":"https://github.com/Aleksi44.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Django Selenium Docker\n\nHere is a webapp that displays the Selenium window preview in a Django Admin.\n\n![Selenium Docker preview](https://static.snoweb.fr/media/selenium-docker-github-readme.gif)\n\nIn this simple example, we display the urls of the following pages:\n\n- https://www.facebook.com/\n- https://www.linkedin.com/\n- https://www.instagram.com/\n- https://twitter.com/\n\nThis minimalist webapp was designed to help you configure the Python ecosystem with Selenium.\n\nThe webapp uses the following services :\n\n- [Selenium](https://github.com/SeleniumHQ/selenium)\n- [Docker](https://www.docker.com/)\n- [Django](https://github.com/django/django) (Webapp)\n- [Postgresql](https://www.postgresql.org/) (Database)\n- [Celery](https://github.com/celery/celery) (Task)\n- [RabbitMQ](https://www.rabbitmq.com/) (Broker)\n- [Django channels](https://github.com/django/channels) (Websocket)\n- [Redis](https://redis.io/) (Channel layers)\n\n## Run the webapp\n\n### Run with Docker\n\n1 - Check and stop all the following services if they are running on your local machine :\n\n    service rabbitmq-server stop\n    service postgresql stop\n    service redis-server stop\n\n2 - And run :\n\n    docker-compose up\n    docker-compose exec -T app python manage.py on_start --settings=settings.production\n\n3 - Login with django:selenium at :\n\n    http://127.0.0.1:8001/\n\n### Or run locally\n\n1 - You need to run/install these services :\n\n    sudo service rabbitmq-server start\n    sudo service redis-server start\n    sudo service postgresql start\n\n2 - Then configure your database by following the Django settings.dev configuration :\n\n    DATABASES = {\n        'default': {\n            'ENGINE': 'django.db.backends.postgresql_psycopg2',\n            'NAME': 'app',\n            'USER': 'app_user',\n            'PASSWORD': 'changeme',\n            'HOST': 'localhost',\n            'PORT': '5432',\n        }\n    }\n\n3 - Then launch the webapp and the worker :\n\n    export DJANGO_SETTINGS_MODULE=settings.dev\n    pip install -r requirements.txt\n    python manage.py on_start --settings=settings.dev\n    python manage.py runserver 127.0.0.1:4243 -v 3 --settings=settings.dev\n    celery -A app.core worker -l info\n\n4 - Login with django:selenium at :\n\n    http://127.0.0.1:4243/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faleksi44%2Fdjango-selenium-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faleksi44%2Fdjango-selenium-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faleksi44%2Fdjango-selenium-docker/lists"}