Giter Site home page Giter Site logo

pqusic's Introduction

MusicWebApp

[Codeship status

A Music playlist app

##Screenshots alt_text alt_text alt_text

License

This application is licensed under Apache license

pqusic's People

Contributors

arpit1997 avatar vishaln04 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

gautam-cs

pqusic's Issues

Signup is not working

Here is the traceback

None
None
Internal Server Error: /signup/
Traceback (most recent call last):
  File "/usr/local/lib/python3.4/dist-packages/django/core/handlers/base.py", line 149, in get_response
    response = self.process_exception_by_middleware(e, request)
  File "/usr/local/lib/python3.4/dist-packages/django/core/handlers/base.py", line 147, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/home/arpit/Projects/MusicWebApp/mysite/MusicApp/views.py", line 100, in user_signup
    user = User.objects.create_user(username, email, passwd, first_name=first_name, last_name=last_name)
  File "/usr/local/lib/python3.4/dist-packages/django/contrib/auth/models.py", line 154, in create_user
    return self._create_user(username, email, password, **extra_fields)
  File "/usr/local/lib/python3.4/dist-packages/django/contrib/auth/models.py", line 144, in _create_user
    raise ValueError('The given username must be set')
ValueError: The given username must be set

Correct these errors
@vishaln04

When i clicked on login button it shows username nd password did not match without even clicking submit button.
Have a look on that

Error when adding a song to playlist using + button

http://159.203.216.55:8080/accounts/login/?next=/playlists/add/

Here is the traceback.

Page not found (404)
Request Method:	GET
Request URL:	http://159.203.216.55:8080/accounts/login/?next=/playlists/add/
Using the URLconf defined in mysite.urls, Django tried these URL patterns, in this order:
^admin/
^ ^login/ [name='login']
^ ^home/ [name='home']
^ ^signup/ [name='signup']
^ ^activate [name='activate']
^ ^password-reset [name='password_reset']
^ ^change-password [name='change_password']
^ ^u-logout [name='logout']
^ ^playlists$ [name='view-playlists']
^ ^playlists/$ [name='view-playlists']
^ ^playlist/(?P<playlist_name>[a-zA-Z0-9]+)$ [name='playlist_songs']
^ ^playlist/(?P<playlist_name>[a-zA-Z0-9]+)/$ [name='playlist_songs']
^ ^playlists/create$ [name='create-playlists']
^ ^playlists/create/$ [name='create-playlists']
^ ^playlists/add$ [name='add_to_playlist']
^ ^playlists/add/$ [name='add_to_playlist']
^ ^playlists/(?P<username>[\S]+)/view$ [name='view_user_playlists']
^ ^playlists/(?P<username>[\S]+)/view/$ [name='view_user_playlists']
^ ^plylist/(?P<username>[\S]+)/view/(?P<playlist_name>[a-zA-Z0-9]{1,})$ [name='view_user_playlist_songs']
^ ^plylist/(?P<username>[\S]+)/view/(?P<playlist_name>[a-zA-Z0-9]{1,})/$ [name='view_user_playlist_songs']
^ ^playlist/add/song/(?P<song_id>[\S]+)$ [name='add_to_playlist_router']
^ ^playlist/add/song/(?P<song_id>[\S]+)$/ [name='add_to_playlist_router']
^ ^playlists/delete/(?P<name>[a-zA-Z]{1,}) [name='delete-playlist']
^ ^playlists/(?P<playlist_name>[a-zA-Z0-9]{1,})/songs/(?P<song_id>[\S]+) [name='delete-songs']
^ ^playlists/(?P<username>[\S]+)/import/(?P<name>[a-zA-Z0-9]{1,})$ [name='import_playlist']
^ ^playlists/(?P<username>[\S]+)/import/(?P<name>[a-zA-Z0-9]{1,})/$ [name='import_playlist']
^ ^follow/(?P<username>[\S]+) [name='follow-user']
^ ^unfollow/(?P<username>[\S]+) [name='unfollow-user']
^ share/(?P<playlist_name>[a-zA-Z0-9]{1,})$ [name='share_playlist-router']
^ share/(?P<playlist_name>[a-zA-Z0-9]{1,})/$ [name='share_playlist-router']
^ share/(?P<playlist_name>[a-zA-Z0-9]{1,})/user$ [name='share_playlist']
^ share/(?P<playlist_name>[a-zA-Z0-9]{1,})/user/$ [name='share_playlist']
^ ^search$ [name='search-result']
^ ^search/$ [name='search-result']
^ ^audio/geturl/(?P<yt_url>[\S]+) [name='get_url']
^ ^audio/geturl/$ [name='get_url']
^ ^searchuser$ [name='search_user']
^ ^searchuser/$ [name='search_user']
^ profile$ [name='view_profile']
^ profile/$ [name='view_profile']
^ history$ [name='view_history']
^ history/$ [name='view_history']
The current URL, accounts/login/, 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.

System Check Issues

I got this warnings
System check identified some issues:

WARNINGS:
MusicApp.History.song: (fields.W340) null has no effect on ManyToManyField.
MusicApp.Playlist.songs: (fields.W340) null has no effect on ManyToManyField.

System check identified 2 issues (0 silenced).

Few things to remember

@vishaln04
remember these things while completing the work

  • create history when get_video_url function is called
  • while someone starts following a user at the same time create an entry in followings table to keep track.
  • read the comments and docstring to remove conflicts
  • unfollow user view is not working now. It will be completed soon.
  • complete rest of the implemented views.

Please commit the changes and notify the progress.

parse youtube page

Address following points while solving this issue

  • add a search query bar in homepage.
  • query result should be shown in a list form.
  • To show the result parse the youtube page and get following attributes for each result like title,thumbnail, duration, views, etc. Refer to commit 0b8bca2
  • take help of @sandeep201451066 for template designs.
  • add a feature to play the audio when a user clicks on a song result. you may refer this
    @leomi7 you can help in this issue.

DO NOT VIOLATE PEP8 CODE STYLE and maintain quality.

Handle exceptions and error messages

@vishaln04 @mayankpadshala

Handle all the exceptions and error messages in login and signup views.Try for all the cases like entering wrong data, creating account with existing username or email. Provide proper page redirection after login and signup or an error message.

List indexout of range error

@arpit1997 I thought this is because of indexing in this fashion in ytparser.py
self.yt_links_views.append(data.find_all('li')[1].get_text())

can we use next() function instead of [1] like
self.yt_links_views.append(data.find_all('li').next().get_text())

Index Error

I frequently get the IndexError i.e list index out of range. Is it only happened to me or anyone else also get the same error.
See the following screenshot
index

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.