Skip to content

Commit

Permalink
Merge pull request #50 from DEKHTIARJonathan/dev
Browse files Browse the repository at this point in the history
Package Updates + Form Improvements + Error in signup fixed
  • Loading branch information
DEKHTIARJonathan authored Sep 23, 2017
2 parents ce11f5c + 12831b5 commit 9aa98ff
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 20 deletions.
21 changes: 12 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,27 @@ FeedCrunch.IO - Empower RSS feeds to a whole new level
[![ReadTheDocs](https://img.shields.io/badge/docs-latest-brightgreen.svg?style=flat&maxAge=86400&label=documentation)](http://feedcrunch.readthedocs.io/en/latest/)
[![Twitter Follow](https://img.shields.io/twitter/follow/born2data.svg?style=flat&label=Follow%20me:%20@born2data)](https://twitter.com/intent/user?screen_name=born2data)

[![Updates](https://pyup.io/repos/github/DEKHTIARJonathan/FeedCrunch.IO/shield.svg)](https://pyup.io/repos/github/DEKHTIARJonathan/FeedCrunch.IO/)
[![Python 3](https://pyup.io/repos/github/DEKHTIARJonathan/FeedCrunch.IO/python-3-shield.svg)](https://pyup.io/repos/github/DEKHTIARJonathan/FeedCrunch.IO/)

__________________
Production Metrics<br>
[![Build Status - Master](https://img.shields.io/travis/DEKHTIARJonathan/FeedCrunch.IO/master.svg?label=Travis%20-%20Master)](https://travis-ci.org/DEKHTIARJonathan/FeedCrunch.IO)
[![Updates](https://pyup.io/repos/github/DEKHTIARJonathan/FeedCrunch.IO/shield.svg)](https://pyup.io/repos/github/DEKHTIARJonathan/FeedCrunch.IO/)
[![Python 3](https://pyup.io/repos/github/DEKHTIARJonathan/FeedCrunch.IO/python-3-shield.svg)](https://pyup.io/repos/github/DEKHTIARJonathan/FeedCrunch.IO/)
[![Coverage Status](https://img.shields.io/coveralls/DEKHTIARJonathan/FeedCrunch.IO/master.svg?label=coveralls)](https://coveralls.io/github/DEKHTIARJonathan/FeedCrunch.IO?branch=master)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/f06c89cf87d44180ae9170b5c720ff54)](https://www.codacy.com/app/DEKHTIARJonathan/FeedCrunch.IO)
[![codecov](https://img.shields.io/codecov/c/github/DEKHTIARJonathan/FeedCrunch.IO/master.svg?label=codecov)](https://codecov.io/gh/DEKHTIARJonathan/FeedCrunch.IO)
[![Codacy Master grade](https://img.shields.io/codacy/grade/f06c89cf87d44180ae9170b5c720ff54/master.svg?label=codacy)](https://www.codacy.com/app/DEKHTIARJonathan/FeedCrunch.IO)
[![Codacy Master coverage](https://img.shields.io/codacy/coverage/f06c89cf87d44180ae9170b5c720ff54/master.svg?label=codacy%20coverage)](https://www.codacy.com/app/DEKHTIARJonathan/FeedCrunch.IO)
[![Coverage Status](https://img.shields.io/coveralls/DEKHTIARJonathan/FeedCrunch.IO/master.svg?label=coveralls%20coverage)](https://coveralls.io/github/DEKHTIARJonathan/FeedCrunch.IO?branch=master)
[![codecov](https://img.shields.io/codecov/c/github/DEKHTIARJonathan/FeedCrunch.IO/master.svg?label=codecov%20coverage)](https://codecov.io/gh/DEKHTIARJonathan/FeedCrunch.IO)
[![Code Health](https://landscape.io/github/DEKHTIARJonathan/FeedCrunch.IO/master/landscape.svg?style=flat)](https://landscape.io/github/DEKHTIARJonathan/FeedCrunch.IO/master)
[![Website](https://img.shields.io/website-up-down-green-red/http/www.feedcrunch.io.svg?label=Feedcrunch.io)](https://www.feedcrunch.io)

__________________
Development Metrics<br>
[![Build Status - Dev](https://img.shields.io/travis/DEKHTIARJonathan/FeedCrunch.IO/dev.svg?label=Travis%20-%20Dev)](https://travis-ci.org/DEKHTIARJonathan/FeedCrunch.IO)
[![Coverage Status](https://img.shields.io/coveralls/DEKHTIARJonathan/FeedCrunch.IO/dev.svg?label=coveralls)](https://coveralls.io/github/DEKHTIARJonathan/FeedCrunch.IO?branch=master)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/f06c89cf87d44180ae9170b5c720ff54?branch=dev)](https://www.codacy.com/app/DEKHTIARJonathan/FeedCrunch.IO)
[![Codecov Status](https://img.shields.io/codecov/c/github/DEKHTIARJonathan/FeedCrunch.IO/dev.svg?label=codecov)](https://codecov.io/gh/DEKHTIARJonathan/FeedCrunch.IO)
[![Code Health](https://landscape.io/github/DEKHTIARJonathan/FeedCrunch.IO/dev/landscape.svg?style=flat)](https://landscape.io/github/DEKHTIARJonathan/FeedCrunch.IO/dev)
[![Codacy Master grade](https://img.shields.io/codacy/grade/f06c89cf87d44180ae9170b5c720ff54/dev.svg?label=codacy)](https://www.codacy.com/app/DEKHTIARJonathan/FeedCrunch.IO)
[![Codacy Master coverage](https://img.shields.io/codacy/coverage/f06c89cf87d44180ae9170b5c720ff54/dev.svg?label=codacy%20coverage)](https://www.codacy.com/app/DEKHTIARJonathan/FeedCrunch.IO)
[![Coverage Status](https://img.shields.io/coveralls/DEKHTIARJonathan/FeedCrunch.IO/dev.svg?label=coveralls%20coverage)](https://coveralls.io/github/DEKHTIARJonathan/FeedCrunch.IO?branch=master)
[![codecov](https://img.shields.io/codecov/c/github/DEKHTIARJonathan/FeedCrunch.IO/dev.svg?label=codecov%20coverage)](https://codecov.io/gh/DEKHTIARJonathan/FeedCrunch.IO)
[![Code Health](https://landscape.io/github/DEKHTIARJonathan/FeedCrunch.IO/dev/landscape.svg?style=flat)](https://landscape.io/github/DEKHTIARJonathan/FeedCrunch.IO/master)
[![Website](https://img.shields.io/website-up-down-green-red/http/feedcrunch-dev.eu-gb.mybluemix.net.svg?label=Feedcrunch.io%20-%20Dev)](https://feedcrunch-dev.eu-gb.mybluemix.net/)

__________________
Expand Down
13 changes: 12 additions & 1 deletion feedcrunch_home/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
from django.shortcuts import render_to_response, redirect
from django.template import RequestContext, loader

from rest_framework.authtoken.models import Token

from feedcrunch.models import Country, Option, FeedUser

from custom_render import myrender as render
Expand Down Expand Up @@ -66,7 +68,16 @@ def signUPView(request):
password = request.POST['password']
birthdate = request.POST['birthdate']

tmp_usr = FeedUser.objects.create_user(username, email, password, firstname=firstname, lastname=lastname, country=country, gender=gender, birthdate=birthdate)
tmp_usr = FeedUser.objects.create_user(
username,
email,
password,
firstname=firstname,
lastname=lastname,
country=country,
gender=gender,
birthdate=birthdate
)

user = authenticate(username=username, password=password)
login(request, user)
Expand Down
8 changes: 4 additions & 4 deletions feedcrunch_rssadmin/templates/admin/admin_personal.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@
<label for="email">Email Address</label>
<input id="email" name="email" type="email" class="required validate" aria-required="true" data-init="{{ user.email }}" value="{{ user.email }}">
</div>
<div class="input-field col m6 s12">
<label for="birthdate" id="birthdate-label">Birthdate</label>
<input id="birthdate" name="birthdate" type="date" class="datepicker required" {% if user.get_birthdate_as_string is not None %} data-init="{{ user.get_birthdate_as_string }}" {% endif %}>
</div>
<div class="input-field col m6 s12">
<select id="gender" class="required validate" aria-required="true" data-init="{{ user.gender }}" >
<option selected disabled>Select One Gender</option>
Expand Down Expand Up @@ -66,10 +70,6 @@
{% endfor %}
</select>
</div>
<div class="input-field col m6 s12">
<label for="birthdate" id="birthdate-label">Birthdate</label>
<input id="birthdate" name="birthdate" type="date" class="datepicker required" {% if user.get_birthdate_as_string is not None %} data-init="{{ user.get_birthdate_as_string }}" {% endif %}>
</div>
<div class="input-field col m12">
<label for="feedtitle">RSS Feed Title</label>
<input id="feedtitle" name="feedtitle" type="text" data-init="{{ user.rss_feed_title }}" value="{{ user.rss_feed_title }}">
Expand Down
4 changes: 1 addition & 3 deletions feedcrunch_rssadmin/templates/admin/onboarding.html
Original file line number Diff line number Diff line change
Expand Up @@ -378,9 +378,7 @@ <h2 class="hide_laptop">Create Opportunities</h2>
<input id="job" name="job" type="text" class="validate" data-init="{{ user.job }}" value="{{ user.job }}">
</div>
<div class="input-field col s12">
<textarea id="description" name="description" class="validate materialize-textarea description-textarea" data-init="{{ user.description }}">
{{ user.description }}
</textarea>
<textarea id="description" name="description" class="validate materialize-textarea description-textarea" data-init="{{ user.description }}">{{ user.description }}</textarea>
<label for="description">Description</label>
</div>
<div class="col s12" style="position: absolute; text-align:right; bottom: 5px; width: calc(50% - 15px);">
Expand Down
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
amqp==2.2.2
asn1crypto==0.22.0
asn1crypto==0.23.0
billiard==3.5.0.3
boto==2.48.0
celery==4.1.0
Expand Down Expand Up @@ -29,7 +29,7 @@ dnspython==1.15.0
dnspython3==1.15.0
facebook-sdk==2.0.0
factory-boy==2.9.2
Faker==0.8.3
Faker==0.8.4
feedgen==0.5.1
feedparser==5.2.1
future==0.16.0
Expand All @@ -47,7 +47,7 @@ pycparser==2.18
pyIsEmail==1.3.1
pyOpenSSL==17.3.0
python-dateutil==2.6.1
python3-linkedin==1.0.1
python3-linkedin==1.0.2
pytz==2017.2
requests==2.18.4
requests-oauthlib==0.8.0
Expand Down

0 comments on commit 9aa98ff

Please sign in to comment.