Skip to content

Commit

Permalink
Portfolio finished. it's ready to deploy it!
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaronga19 committed Jul 27, 2021
1 parent 1e2ff66 commit 59c2082
Show file tree
Hide file tree
Showing 13 changed files with 448 additions and 123 deletions.
154 changes: 153 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# Archivos condidenciales
# Archivos confidenciales

Portfolio/secret.json
Portfolio/media
practice.py
Portfolio/applications/flask
Portfolio/db.sqlite3


# Archivos inecesarios de compartir

Expand All @@ -19,5 +21,155 @@ Portfolio/applications/users/__pycache__
Portfolio/Portfolio/settings/__pycache__


__pycache__/


# Created by https://www.toptal.com/developers/gitignore/api/django
# Edit at https://www.toptal.com/developers/gitignore?templates=django

### Django ###
*.log
*.pot
*.pyc
local_settings.py
db.sqlite3-journal

# If your build process includes running collectstatic, then you probably don't need or want to include staticfiles/
# in your Git repository. Update and uncomment the following line accordingly.
# <django-project-name>/staticfiles/

### Django.Python Stack ###
# Byte-compiled / optimized / DLL files
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/

# Translations
*.mo

# Django stuff:

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
.pybuilder/
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# .python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# PEP 582; used by e.g. github.com/David-OConnor/pyflow
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# pytype static type analyzer
.pytype/

# Cython debug symbols
cython_debug/

# End of https://www.toptal.com/developers/gitignore/api/django
62 changes: 62 additions & 0 deletions Portfolio/Portfolio/settings/prod.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
from .base import *

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = False

ALLOWED_HOSTS = ['*']

# Database
# https://docs.djangoproject.com/en/3.1/ref/settings/#databases

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': get_secret('DB_NAME'),
'USER': get_secret('USER'),
'PASSWORD': get_secret('PASSWORD'),
'HOST': 'localhost',
'PORT': '5432',
}
}

# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/3.1/howto/static-files/

STATIC_URL = '/static/'
STATICFILES_DIRS = [BASE_DIR.child('static')]

# MEDIA FILES
MEDIA_URL = '/media/'
MEDIA_ROOT = BASE_DIR.child('media')

# ckeditor SETTINGS

CKEDITOR_UPLOAD_PATH = 'uploads/'
CKEDITOR_IMAGE_BACKEND = 'pillow'
CKEDITOR_JQUERY_URL = 'https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js'

CKEDITOR_CONFIGS = {
'default':{
'toolbar':'Custom',
'toolbar_Custom': [
['Bold', 'Italic', 'Underline',],
['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'JustifyList'],
['TextColor', 'Format', 'FontSize', 'Link'],
['Smiley', 'Image', 'Iframe'],
['RemoveFormat', 'Source'],
],
'stylesSet' : [],
}
}


# EMAIL SETTINGS

EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend"
EMAIL_USE_TLS = True
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_HOST_USER = get_secret('EMAIL')
EMAIL_HOST_PASSWORD = get_secret('PASS_EMAIL')
EMAIL_PORT = 587
# EMAIL_SUBJECT_PREFIX = '[Test mail]'

Binary file modified Portfolio/applications/home/__pycache__/urls.cpython-37.pyc
Binary file not shown.
Binary file modified Portfolio/applications/users/__pycache__/forms.cpython-37.pyc
Binary file not shown.
37 changes: 37 additions & 0 deletions Portfolio/applications/users/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,40 @@ class ContactForm(forms.ModelForm):
class Meta:
model = UserContact
fields= ('__all__')
widgets = {
'name': forms.TextInput(
attrs={
'placeholder':'Full Name',
'class':'form-control',
'type':'text',
}
),
'email': forms.EmailInput(
attrs={
'placeholder':'E-Mail',
'class':'form-control',
}
),
'phone': forms.TextInput(
attrs={
'placeholder':'Phone Number',
'class':'form-control',
'type':'text',
}
),
'company': forms.TextInput(
attrs={
'placeholder':'Company or Personal?',
'class':'form-control',
'type':'text',
}
),
'message': forms.Textarea(
attrs={
'placeholder':'Let me know how can I help you ☺',
'class':'form-control',
'aria-label':"With textarea",
}
),

}
81 changes: 81 additions & 0 deletions Portfolio/static/img/portfoliored.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 4 additions & 3 deletions Portfolio/templates/home/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@
<h2 class="h3 font-weight-bold text-center">CDMX, Mexico.</h2>
<div class="row">
<div class="col-lg-10 mb-4">
<p class="font-italic text-muted">I born in Mexico City, Currently I'm 25 years old and I like spending my time learning to develop technoligical projects by myself and in a team.</p>
<p class="font-italic text-muted">When I was about fifteen I was so interested in electronical devices so by then I decieded to study something related to this field. As I was learning I noticed that there was a big tech world and the stuffs became more and more interesting. </p>
<br><p class="font-italic text-muted">My name is Aarón Juárez and I was born in Mexico City, Currently I'm 25 years old and I like spending my time learning to develop technoligical projects by myself and in a team.</p>
<br><p class="font-italic text-muted">When I was about fifteen I was so interested in electronical devices so by then I decieded to study something related to this field. As I was learning I noticed that there was a big tech world and the stuffs became more and more interesting. </p>
</div>
<div class="col-lg-8 mb-3">
<p class="font-italic text-muted text-justify">It was until finishing the degree that I started to investigate more about <strong class="font-weight-bold text-dark">Artificial Intelligence </strong> and <strong class="font-weight-bold text-dark">Software Development </strong> mainly. velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<p class="container col-12 font-italic text-muted text-justify">I like working in a team because we can learn so much from each others and you are able to help to others as well. </p>
<blockquote class="col-12 font-italic text-muted text-justify">♪ I'm a music lover too, for me music is a way of expression pretty beautiful. Writing music is one of my favorite hobbies. ♫ </blockquote>
</div>
</div>
</div>
Expand Down
Loading

0 comments on commit 59c2082

Please sign in to comment.