Code Monkey home page Code Monkey logo

django_instagram's Introduction

Django IG

alt tag

Photo sharing social media site built with Python/Django. Based on Instagram's design. The server also uses Django Channels to establish a websocket connection to the client for messages and soon, notifications. Channels requires a redis server to be running, more info can be found about Django Channels here

Installation

Install dependencies

pip3 install -r requirements.txt

Ensure that Redis is installed and running on port 6379 (default).

Run these two commands in two separate terminals

python3 manage.py runserver --noworker
python3 manage.py runworker

django_instagram's People

Contributors

andyalam avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

django_instagram's Issues

...base_layer.py", line 34, in receive_many raise NotImplementedError()

When I try and run your example I upon doing

python manage.py runworker

2019-10-26 18:17:48,242 - INFO - runworker - Using single-threaded worker.
2019-10-26 18:17:48,242 - INFO - runworker - Running worker against channel layer default (asgi_redis.core.RedisChannelLayer)
2019-10-26 18:17:48,242 - INFO - worker - Listening on channels http.request, websocket.connect, websocket.disconnect, websocket.receive
Traceback (most recent call last):
  File "manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/home/skyler/Documents/pyvenvs/insta-django/lib/python3.7/site-packages/django/core/management/__init__.py", line 367, in execute_from_command_line
    utility.execute()
  File "/home/skyler/Documents/pyvenvs/insta-django/lib/python3.7/site-packages/django/core/management/__init__.py", line 359, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/home/skyler/Documents/pyvenvs/insta-django/lib/python3.7/site-packages/django/core/management/base.py", line 294, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/home/skyler/Documents/pyvenvs/insta-django/lib/python3.7/site-packages/django/core/management/base.py", line 345, in execute
    output = self.handle(*args, **options)
  File "/home/skyler/Documents/pyvenvs/insta-django/lib/python3.7/site-packages/channels/management/commands/runworker.py", line 82, in handle
    worker.run()
  File "/home/skyler/Documents/pyvenvs/insta-django/lib/python3.7/site-packages/channels/worker.py", line 88, in run
    channel, content = self.channel_layer.receive_many(channels, block=True)
  File "/home/skyler/Documents/pyvenvs/insta-django/lib/python3.7/site-packages/asgiref/base_layer.py", line 34, in receive_many
    raise NotImplementedError()
NotImplementedError

I tried running regis server and with regis-cli i got a ping back on the right port.

Install

Hello
Please write detailed installation and start-up instructions.
Thank you very much for your efforts.
Yours faithfully

assert pattern.endswith("?") builtins.AssertionError:

Hey andyalam,
I am facing this issue after cloning and running your project. Can you please help me out?

env/lib/python3.6/site-packages/asgi_redis/core.py", line 269, in new_channel assert pattern.endswith("?") builtins.AssertionError:

Command python setup.py egg_info failed with error code 1 in /tmp/pip-build-0f7ean85/imagekit Storing debug log for failure in /home/user/.pip/pip.log error ?

During installing of requirements.txt file with the use of python3 and pip3 terminal is throwing this error :
pip3 install -r requirements.txt
Downloading/unpacking django-annoying==0.8.1 (from -r requirements.txt (line 1))
Downloading django-annoying-0.8.1.tar.gz
Running setup.py (path:/tmp/pip-build-0f7ean85/django-annoying/setup.py) egg_info for package django-annoying

Downloading/unpacking channels==0.17.3 (from -r requirements.txt (line 2))
Downloading channels-0.17.3-py2.py3-none-any.whl (53kB): 53kB downloaded
Downloading/unpacking Django==1.10.3 (from -r requirements.txt (line 3))
Downloading Django-1.10.3-py2.py3-none-any.whl (6.8MB): 6.8MB downloaded
Downloading/unpacking django-imagekit==3.3 (from -r requirements.txt (line 4))
Downloading django-imagekit-3.3.tar.gz (56kB): 56kB downloaded
Running setup.py (path:/tmp/pip-build-0f7ean85/django-imagekit/setup.py) egg_info for package django-imagekit

no previously-included directories found matching 'tests'

Downloading/unpacking imagekit==1.0.0 (from -r requirements.txt (line 5))
Downloading imagekit-1.0.0.tar.gz
Running setup.py (path:/tmp/pip-build-0f7ean85/imagekit/setup.py) egg_info for package imagekit
Traceback (most recent call last):
File "", line 17, in
File "/tmp/pip-build-0f7ean85/imagekit/setup.py", line 21, in
with open('LICENSE') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'LICENSE'
Complete output from command python setup.py egg_info:
Traceback (most recent call last):

File "", line 17, in

File "/tmp/pip-build-0f7ean85/imagekit/setup.py", line 21, in

with open('LICENSE') as f:

FileNotFoundError: [Errno 2] No such file or directory: 'LICENSE'


Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip-build-0f7ean85/imagekit
Storing debug log for failure in /home/pratyush/.pip/pip.log

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.