Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
65f0e30
first
Aug 25, 2024
d485718
first
Aug 25, 2024
ef4cf99
ckeditor added
Aug 26, 2024
eef0634
new theme
Aug 26, 2024
04afcd3
0
tej589 Sep 1, 2024
daac6fe
gitignore added
Oct 26, 2024
1fcbba8
fixed requirements
Oct 26, 2024
d87bb95
removing cache
Nov 1, 2024
5f27854
fixed requirements
Nov 1, 2024
5157593
updating readme
Nov 1, 2024
a29e529
updating readme
Nov 1, 2024
33ce4ef
updating readme
Nov 1, 2024
74da225
some changes
Nov 9, 2024
8e4164a
some to do s
Nov 9, 2024
caf47e6
Ajout
hajriislem01 Nov 13, 2024
b8c53f4
admin_change
hajriislem01 Nov 14, 2024
49bdacb
modif 1.0
hajriislem01 Nov 15, 2024
1bcb53d
modif_1.1
hajriislem01 Nov 15, 2024
ae81499
modif_1.2
hajriislem01 Nov 16, 2024
be864f9
to prod
Nov 16, 2024
1bc6b80
added dockerfile
Nov 16, 2024
33dc81d
adding gunicorn
Nov 16, 2024
28d9ae6
prod deployment
Nov 16, 2024
fb6317b
working on prod
Nov 18, 2024
db50ac3
env var config
Nov 18, 2024
63bea5e
testing
Nov 18, 2024
a8b98b4
merging env var
Nov 18, 2024
e86ce50
fixing home
Nov 18, 2024
328ef13
removing db
Nov 18, 2024
5cda05e
fixing db
Nov 18, 2024
7468a0d
delete db from git
Nov 18, 2024
b38c2c4
merging env var
Nov 18, 2024
f75b0a2
adding all posts
Nov 19, 2024
b11d552
ajout_posts
hajriislem01 Nov 20, 2024
7226383
modif1.5
hajriislem01 Nov 22, 2024
4b0a039
modif1.5
hajriislem01 Nov 28, 2024
4117c04
comments, homepage & post-details UI
WeslatiWalid Nov 29, 2024
46549b1
modif1.6
hajriislem01 Nov 29, 2024
db96b30
ok
hajriislem01 Nov 29, 2024
492d393
add_comment
hajriislem01 Dec 19, 2024
b096733
add_profile
hajriislem01 Dec 23, 2024
3300218
adding Replys to Comments
WeslatiWalid Dec 23, 2024
c87b61d
merege
WeslatiWalid Dec 23, 2024
0ce6d6a
login
hajriislem01 Dec 24, 2024
1eee5a2
removing sqlite
Dec 24, 2024
7da7a59
profile
hajriislem01 Dec 24, 2024
84c5159
fixing reply & comments
WeslatiWalid Dec 25, 2024
b979c94
rm db
WeslatiWalid Dec 25, 2024
e0cd4c3
auteur_de_mois
hajriislem01 Dec 27, 2024
ed22940
sql remove
hajriislem01 Dec 27, 2024
fc3906d
Merge branch 'islem_branch' into fix_reply
mmby85 Dec 27, 2024
5d31ee5
Merge pull request #1 from mmby85/fix_reply
mmby85 Dec 27, 2024
36448e2
Merge pull request #2 from mmby85/islem_branch
mmby85 Dec 27, 2024
ddf3437
Merge remote-tracking branch 'origin/fix_reply'
Dec 27, 2024
4a32a12
fixed merged
Dec 27, 2024
7b2286c
change category
Dec 27, 2024
fd397d5
rm migrations
Dec 27, 2024
d11d4db
Merge branch 'main' of github.com:mmby85/bizz2goo
Dec 27, 2024
d4d28b1
images & author bugs
WeslatiWalid Feb 11, 2025
05a3189
latest updates
WeslatiWalid Feb 25, 2025
884709f
latest changes
WeslatiWalid Apr 4, 2025
e710782
UI & Typo updates
WeslatiWalid Apr 24, 2025
6672db6
UI Updates
WeslatiWalid Apr 28, 2025
1be9287
latest updates
WeslatiWalid May 12, 2025
688b2d9
Include static files
WeslatiWalid Jun 8, 2025
d392adc
Include static filess
WeslatiWalid Jun 8, 2025
354e493
Include static files and update .gitignore
WeslatiWalid Jun 8, 2025
6499b04
UI tweeks & adding email forms
WeslatiWalid Jun 20, 2025
84ba8fe
fix email settings
WeslatiWalid Jun 20, 2025
922e605
UI mobile Responsive Tweeks & adding newslettre functionality
WeslatiWalid Jul 3, 2025
dead46c
enable posts Date&Time editing
WeslatiWalid Jul 13, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Next Next commit
first
  • Loading branch information
mmby85 committed Aug 25, 2024
commit 65f0e306cbcd2a88a352f960c87a9bc7b05481d6
The diff you're trying to view is too large. We only load the first 3000 changed files.
Binary file modified db.sqlite3
Binary file not shown.
Binary file added media/images/posts/dsd-ecarteur.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added myapp/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file added myapp/__pycache__/admin.cpython-310.pyc
Binary file not shown.
Binary file added myapp/__pycache__/apps.cpython-310.pyc
Binary file not shown.
Binary file added myapp/__pycache__/models.cpython-310.pyc
Binary file not shown.
Binary file added myapp/__pycache__/urls.cpython-310.pyc
Binary file not shown.
Binary file added myapp/__pycache__/views.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added myproject/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file added myproject/__pycache__/settings.cpython-310.pyc
Binary file not shown.
Binary file added myproject/__pycache__/urls.cpython-310.pyc
Binary file not shown.
Binary file added myproject/__pycache__/wsgi.cpython-310.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion templates/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<nav class="navbar navbar-expand-lg bg-white">
<div class="container">
<a class="navbar-brand" href="{% url 'index' %}">
<h2>Blog<span style="color: rgb(241, 110, 70);">Spot</span></h2>
<h2>Bizz<span style="color: rgb(241, 110, 70);">2Goo</span></h2>
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive"
aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
Expand Down
247 changes: 247 additions & 0 deletions venv/bin/Activate.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,247 @@
<#
.Synopsis
Activate a Python virtual environment for the current PowerShell session.
.Description
Pushes the python executable for a virtual environment to the front of the
$Env:PATH environment variable and sets the prompt to signify that you are
in a Python virtual environment. Makes use of the command line switches as
well as the `pyvenv.cfg` file values present in the virtual environment.
.Parameter VenvDir
Path to the directory that contains the virtual environment to activate. The
default value for this is the parent of the directory that the Activate.ps1
script is located within.
.Parameter Prompt
The prompt prefix to display when this virtual environment is activated. By
default, this prompt is the name of the virtual environment folder (VenvDir)
surrounded by parentheses and followed by a single space (ie. '(.venv) ').
.Example
Activate.ps1
Activates the Python virtual environment that contains the Activate.ps1 script.
.Example
Activate.ps1 -Verbose
Activates the Python virtual environment that contains the Activate.ps1 script,
and shows extra information about the activation as it executes.
.Example
Activate.ps1 -VenvDir C:\Users\MyUser\Common\.venv
Activates the Python virtual environment located in the specified location.
.Example
Activate.ps1 -Prompt "MyPython"
Activates the Python virtual environment that contains the Activate.ps1 script,
and prefixes the current prompt with the specified string (surrounded in
parentheses) while the virtual environment is active.
.Notes
On Windows, it may be required to enable this Activate.ps1 script by setting the
execution policy for the user. You can do this by issuing the following PowerShell
command:
PS C:\> Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
For more information on Execution Policies:
https://go.microsoft.com/fwlink/?LinkID=135170
#>
Param(
[Parameter(Mandatory = $false)]
[String]
$VenvDir,
[Parameter(Mandatory = $false)]
[String]
$Prompt
)

<# Function declarations --------------------------------------------------- #>

<#
.Synopsis
Remove all shell session elements added by the Activate script, including the
addition of the virtual environment's Python executable from the beginning of
the PATH variable.
.Parameter NonDestructive
If present, do not remove this function from the global namespace for the
session.
#>
function global:deactivate ([switch]$NonDestructive) {
# Revert to original values

# The prior prompt:
if (Test-Path -Path Function:_OLD_VIRTUAL_PROMPT) {
Copy-Item -Path Function:_OLD_VIRTUAL_PROMPT -Destination Function:prompt
Remove-Item -Path Function:_OLD_VIRTUAL_PROMPT
}

# The prior PYTHONHOME:
if (Test-Path -Path Env:_OLD_VIRTUAL_PYTHONHOME) {
Copy-Item -Path Env:_OLD_VIRTUAL_PYTHONHOME -Destination Env:PYTHONHOME
Remove-Item -Path Env:_OLD_VIRTUAL_PYTHONHOME
}

# The prior PATH:
if (Test-Path -Path Env:_OLD_VIRTUAL_PATH) {
Copy-Item -Path Env:_OLD_VIRTUAL_PATH -Destination Env:PATH
Remove-Item -Path Env:_OLD_VIRTUAL_PATH
}

# Just remove the VIRTUAL_ENV altogether:
if (Test-Path -Path Env:VIRTUAL_ENV) {
Remove-Item -Path env:VIRTUAL_ENV
}

# Just remove VIRTUAL_ENV_PROMPT altogether.
if (Test-Path -Path Env:VIRTUAL_ENV_PROMPT) {
Remove-Item -Path env:VIRTUAL_ENV_PROMPT
}

# Just remove the _PYTHON_VENV_PROMPT_PREFIX altogether:
if (Get-Variable -Name "_PYTHON_VENV_PROMPT_PREFIX" -ErrorAction SilentlyContinue) {
Remove-Variable -Name _PYTHON_VENV_PROMPT_PREFIX -Scope Global -Force
}

# Leave deactivate function in the global namespace if requested:
if (-not $NonDestructive) {
Remove-Item -Path function:deactivate
}
}

<#
.Description
Get-PyVenvConfig parses the values from the pyvenv.cfg file located in the
given folder, and returns them in a map.
For each line in the pyvenv.cfg file, if that line can be parsed into exactly
two strings separated by `=` (with any amount of whitespace surrounding the =)
then it is considered a `key = value` line. The left hand string is the key,
the right hand is the value.
If the value starts with a `'` or a `"` then the first and last character is
stripped from the value before being captured.
.Parameter ConfigDir
Path to the directory that contains the `pyvenv.cfg` file.
#>
function Get-PyVenvConfig(
[String]
$ConfigDir
) {
Write-Verbose "Given ConfigDir=$ConfigDir, obtain values in pyvenv.cfg"

# Ensure the file exists, and issue a warning if it doesn't (but still allow the function to continue).
$pyvenvConfigPath = Join-Path -Resolve -Path $ConfigDir -ChildPath 'pyvenv.cfg' -ErrorAction Continue

# An empty map will be returned if no config file is found.
$pyvenvConfig = @{ }

if ($pyvenvConfigPath) {

Write-Verbose "File exists, parse `key = value` lines"
$pyvenvConfigContent = Get-Content -Path $pyvenvConfigPath

$pyvenvConfigContent | ForEach-Object {
$keyval = $PSItem -split "\s*=\s*", 2
if ($keyval[0] -and $keyval[1]) {
$val = $keyval[1]

# Remove extraneous quotations around a string value.
if ("'""".Contains($val.Substring(0, 1))) {
$val = $val.Substring(1, $val.Length - 2)
}

$pyvenvConfig[$keyval[0]] = $val
Write-Verbose "Adding Key: '$($keyval[0])'='$val'"
}
}
}
return $pyvenvConfig
}


<# Begin Activate script --------------------------------------------------- #>

# Determine the containing directory of this script
$VenvExecPath = Split-Path -Parent $MyInvocation.MyCommand.Definition
$VenvExecDir = Get-Item -Path $VenvExecPath

Write-Verbose "Activation script is located in path: '$VenvExecPath'"
Write-Verbose "VenvExecDir Fullname: '$($VenvExecDir.FullName)"
Write-Verbose "VenvExecDir Name: '$($VenvExecDir.Name)"

# Set values required in priority: CmdLine, ConfigFile, Default
# First, get the location of the virtual environment, it might not be
# VenvExecDir if specified on the command line.
if ($VenvDir) {
Write-Verbose "VenvDir given as parameter, using '$VenvDir' to determine values"
}
else {
Write-Verbose "VenvDir not given as a parameter, using parent directory name as VenvDir."
$VenvDir = $VenvExecDir.Parent.FullName.TrimEnd("\\/")
Write-Verbose "VenvDir=$VenvDir"
}

# Next, read the `pyvenv.cfg` file to determine any required value such
# as `prompt`.
$pyvenvCfg = Get-PyVenvConfig -ConfigDir $VenvDir

# Next, set the prompt from the command line, or the config file, or
# just use the name of the virtual environment folder.
if ($Prompt) {
Write-Verbose "Prompt specified as argument, using '$Prompt'"
}
else {
Write-Verbose "Prompt not specified as argument to script, checking pyvenv.cfg value"
if ($pyvenvCfg -and $pyvenvCfg['prompt']) {
Write-Verbose " Setting based on value in pyvenv.cfg='$($pyvenvCfg['prompt'])'"
$Prompt = $pyvenvCfg['prompt'];
}
else {
Write-Verbose " Setting prompt based on parent's directory's name. (Is the directory name passed to venv module when creating the virtual environment)"
Write-Verbose " Got leaf-name of $VenvDir='$(Split-Path -Path $venvDir -Leaf)'"
$Prompt = Split-Path -Path $venvDir -Leaf
}
}

Write-Verbose "Prompt = '$Prompt'"
Write-Verbose "VenvDir='$VenvDir'"

# Deactivate any currently active virtual environment, but leave the
# deactivate function in place.
deactivate -nondestructive

# Now set the environment variable VIRTUAL_ENV, used by many tools to determine
# that there is an activated venv.
$env:VIRTUAL_ENV = $VenvDir

if (-not $Env:VIRTUAL_ENV_DISABLE_PROMPT) {

Write-Verbose "Setting prompt to '$Prompt'"

# Set the prompt to include the env name
# Make sure _OLD_VIRTUAL_PROMPT is global
function global:_OLD_VIRTUAL_PROMPT { "" }
Copy-Item -Path function:prompt -Destination function:_OLD_VIRTUAL_PROMPT
New-Variable -Name _PYTHON_VENV_PROMPT_PREFIX -Description "Python virtual environment prompt prefix" -Scope Global -Option ReadOnly -Visibility Public -Value $Prompt

function global:prompt {
Write-Host -NoNewline -ForegroundColor Green "($_PYTHON_VENV_PROMPT_PREFIX) "
_OLD_VIRTUAL_PROMPT
}
$env:VIRTUAL_ENV_PROMPT = $Prompt
}

# Clear PYTHONHOME
if (Test-Path -Path Env:PYTHONHOME) {
Copy-Item -Path Env:PYTHONHOME -Destination Env:_OLD_VIRTUAL_PYTHONHOME
Remove-Item -Path Env:PYTHONHOME
}

# Add the venv to the PATH
Copy-Item -Path Env:PATH -Destination Env:_OLD_VIRTUAL_PATH
$Env:PATH = "$VenvExecDir$([System.IO.Path]::PathSeparator)$Env:PATH"
69 changes: 69 additions & 0 deletions venv/bin/activate
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# This file must be used with "source bin/activate" *from bash*
# you cannot run it directly

deactivate () {
# reset old environment variables
if [ -n "${_OLD_VIRTUAL_PATH:-}" ] ; then
PATH="${_OLD_VIRTUAL_PATH:-}"
export PATH
unset _OLD_VIRTUAL_PATH
fi
if [ -n "${_OLD_VIRTUAL_PYTHONHOME:-}" ] ; then
PYTHONHOME="${_OLD_VIRTUAL_PYTHONHOME:-}"
export PYTHONHOME
unset _OLD_VIRTUAL_PYTHONHOME
fi

# This should detect bash and zsh, which have a hash command that must
# be called to get it to forget past commands. Without forgetting
# past commands the $PATH changes we made may not be respected
if [ -n "${BASH:-}" -o -n "${ZSH_VERSION:-}" ] ; then
hash -r 2> /dev/null
fi

if [ -n "${_OLD_VIRTUAL_PS1:-}" ] ; then
PS1="${_OLD_VIRTUAL_PS1:-}"
export PS1
unset _OLD_VIRTUAL_PS1
fi

unset VIRTUAL_ENV
unset VIRTUAL_ENV_PROMPT
if [ ! "${1:-}" = "nondestructive" ] ; then
# Self destruct!
unset -f deactivate
fi
}

# unset irrelevant variables
deactivate nondestructive

VIRTUAL_ENV="/home/cns/Freelance/Blog/Bizz2Goo/Python-Django-Blog-Website/venv"
export VIRTUAL_ENV

_OLD_VIRTUAL_PATH="$PATH"
PATH="$VIRTUAL_ENV/bin:$PATH"
export PATH

# unset PYTHONHOME if set
# this will fail if PYTHONHOME is set to the empty string (which is bad anyway)
# could use `if (set -u; : $PYTHONHOME) ;` in bash
if [ -n "${PYTHONHOME:-}" ] ; then
_OLD_VIRTUAL_PYTHONHOME="${PYTHONHOME:-}"
unset PYTHONHOME
fi

if [ -z "${VIRTUAL_ENV_DISABLE_PROMPT:-}" ] ; then
_OLD_VIRTUAL_PS1="${PS1:-}"
PS1="(venv) ${PS1:-}"
export PS1
VIRTUAL_ENV_PROMPT="(venv) "
export VIRTUAL_ENV_PROMPT
fi

# This should detect bash and zsh, which have a hash command that must
# be called to get it to forget past commands. Without forgetting
# past commands the $PATH changes we made may not be respected
if [ -n "${BASH:-}" -o -n "${ZSH_VERSION:-}" ] ; then
hash -r 2> /dev/null
fi
26 changes: 26 additions & 0 deletions venv/bin/activate.csh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# This file must be used with "source bin/activate.csh" *from csh*.
# You cannot run it directly.
# Created by Davide Di Blasi <davidedb@gmail.com>.
# Ported to Python 3.3 venv by Andrew Svetlov <andrew.svetlov@gmail.com>

alias deactivate 'test $?_OLD_VIRTUAL_PATH != 0 && setenv PATH "$_OLD_VIRTUAL_PATH" && unset _OLD_VIRTUAL_PATH; rehash; test $?_OLD_VIRTUAL_PROMPT != 0 && set prompt="$_OLD_VIRTUAL_PROMPT" && unset _OLD_VIRTUAL_PROMPT; unsetenv VIRTUAL_ENV; unsetenv VIRTUAL_ENV_PROMPT; test "\!:*" != "nondestructive" && unalias deactivate'

# Unset irrelevant variables.
deactivate nondestructive

setenv VIRTUAL_ENV "/home/cns/Freelance/Blog/Bizz2Goo/Python-Django-Blog-Website/venv"

set _OLD_VIRTUAL_PATH="$PATH"
setenv PATH "$VIRTUAL_ENV/bin:$PATH"


set _OLD_VIRTUAL_PROMPT="$prompt"

if (! "$?VIRTUAL_ENV_DISABLE_PROMPT") then
set prompt = "(venv) $prompt"
setenv VIRTUAL_ENV_PROMPT "(venv) "
endif

alias pydoc python -m pydoc

rehash
Loading