Skip to content

Commit

Permalink
First commit: dJango
Browse files Browse the repository at this point in the history
  • Loading branch information
vahidsabet committed Jun 9, 2020
0 parents commit 4148167
Show file tree
Hide file tree
Showing 5,884 changed files with 648,758 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 30 additions & 0 deletions .idea/wordcount.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file added db.sqlite3
Empty file.
21 changes: 21 additions & 0 deletions manage.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys


def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'wordcount.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are you sure it's installed and "
"available on your PYTHONPATH environment variable? Did you "
"forget to activate a virtual environment?"
) from exc
execute_from_command_line(sys.argv)


if __name__ == '__main__':
main()
4 changes: 4 additions & 0 deletions templates/about.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<h2>This is great About </h2>


<a href="{% url 'home' %}">Back again</a>
16 changes: 16 additions & 0 deletions templates/count.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<h1>There are {{ count }} words </h1>

{{ fulltext }}


<a href="{% url 'home' %}">Back again</a>
<h1>word Count:</h1>
{{ sortedwords }}

{% for word, count in sortedwords %}

{{ word }}
<br>
{{ count }}
<br>
{% endfor %}
9 changes: 9 additions & 0 deletions templates/home.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
this is me
<a href="{% url 'about' %}">ABOUT</a>

<form action="{% url 'count' %}">
<textarea cols="40" rows="5" name="fulltext"></textarea>
<br>
<br>
<input type="submit" value="count" />
</form>
Loading

0 comments on commit 4148167

Please sign in to comment.