This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default [ | |
{ | |
text: "Afghanistan (+93)", | |
value: "+93", | |
flag: "af", | |
key: "af", | |
}, | |
{ | |
text: "Aland Islands", | |
value: "", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"AED": "United Arab Emirates Dirham", | |
"AFN": "Afghan Afghani", | |
"ALL": "Albanian Lek", | |
"AMD": "Armenian Dram", | |
"ANG": "Netherlands Antillean Guilder", | |
"AOA": "Angolan Kwanza", | |
"ARS": "Argentine Peso", | |
"AUD": "Australian Dollar", | |
"AWG": "Aruban Florin", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"name":"Afghanistan", | |
"code":"AF", | |
"continent":"Asia", | |
"filename":"afghanistan" | |
}, | |
{ | |
"name":"Åland Islands", | |
"continent":"Europe", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Step 1 #Provide a title in the route configuration,Usually in the app.module.ts | |
{ path: '', component: HomeComponent, data: { title: 'welcome' } }, | |
Step 2 #import {ActivatedRoute } from '@angular/router'; | |
Step 3 #Inject the ActivatedRoute interface in the constructor of your component: | |
constructor(private router:ActivatedRoute) { } | |
Step 4,#Subscribe to the data observable and pull out your data variables,use them for what you want. | |
ngOnInit() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
from rest_framework.test import APIClient | |
class TestClass(): | |
def setUp(): | |
self.client = APIClient() | |
self.register_url=reverse('authentication:register') | |
def test_create_user(self): | |
"""Tests if a user can create an account""" | |
valid_register_data = { | |
'user': { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask_mail import Mail, Message | |
from flask import Flask | |
app = Flask(__name__) | |
app.config.update( | |
DEBUG=True, | |
#EMAIL SETTINGS | |
MAIL_SERVER='smtp.gmail.com', | |
MAIL_PORT=465, | |
MAIL_USE_SSL=True, | |
MAIL_USERNAME = 'your email', |
NewerOlder