Re: Help on Creating a Superuser account on render.

2024-04-11 Thread ALINDA Fortunate
Thanks so much for your assistance indeed the issue was I had failed to
visualise my data on railway since I am using an external database. A
friend helped understand that and now I am able to access my admin panel.

Thanks everyone.

On Wed, 10 Apr 2024, 19:59 Luis Zárate,  wrote:

> Maybe something like
>
> python manage.py shell -c "from django.contrib.auth.hashers import
> make_password;from django.contrib.auth.models import User; admin =
> User(username='username', email='exam...@example.com',
> password=make_password('password'),
> is_superuser=True,is_staff=True);admin.save()"
>
>
>
> El dom, 7 abr 2024 a las 2:13, ALINDA Fortunate (<
> alindafortuna...@gmail.com>) escribió:
>
>> It's my external database is postgres on railway.
>>
>> Let me try your opinion and I see.
>>
>> On Sat, 6 Apr 2024, 20:33 Aniket Raj Singh, 
>> wrote:
>>
>>> So you have used render to host your application, you might have
>>> connected an external database (postgreSQL or any other) you might have
>>> used the environment setup to set the database up with the postgreSQL
>>> hosted either on render itself or on a different server, just connect the
>>> database with your application on your local host and create a super user
>>> since the database is same on the render's server's application the
>>> superuser will be same as the superuser you created on the local server
>>> thus you can access the admin panel
>>>
>>>
>>> On Saturday 6 April, 2024 at 9:58:00 pm UTC+5:30 ALINDA Fortunate wrote:
>>>
 Hello I have successfully a django project on render but i have failed
 to access the admin panel

 Any idea on how to create a superuser account on a free tier of render

 Below is my build.sh file
 #!/usr/bin/env bash
 # Exit on error
 set -o errexit



 # Modify this line as needed for your package manager (pip, poetry,
 etc.)
 pip install -r requirements.txt

 # Convert static asset files
 python manage.py collectstatic --no-input

 # Apply any outstanding database migrations
 python manage.py migrate

 if [[ $CREATE_SUPERUSER ]];
 then
   python world_champ_2022/manage.py createsuperuser --no-input
 fi






 --
 ALINDA Fortunate
 Graduate Of Computer Science
 Gulu University
 Passionate about Software Development in Python
 If you can't explain it simply, you don't understand it well enough.
 alindafo...@gmail.com.
 +256 774339676 <+256%20774%20339676> / +256 702910041
 <+256%20702%20910041>
 Kagadi.

>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to django-users+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/9dabff6a-7f5a-4d30-a097-a128f68a6feen%40googlegroups.com
>>> 
>>> .
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAPifpCsa%2BrmS3OWiycH_309ROvMcazv2Z_E76UcZiZKEb%3D3YPg%40mail.gmail.com
>> 
>> .
>>
>
>
> --
> "La utopía sirve para caminar" Fernando Birri
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAG%2B5VyOcJ%2BeL3dTgVHfgW1tjH5p6-qHUzKq83t3z8xK7iNFGdQ%40mail.gmail.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAPifpCtM6bEOREKdmzD5-XOS7PZ4p6C9KTeMKt04FzS3yNZ8cw%40mail.gmail.com.


Re: Help on Creating a Superuser account on render.

2024-04-10 Thread Luis Zárate
Maybe something like

python manage.py shell -c "from django.contrib.auth.hashers import
make_password;from django.contrib.auth.models import User; admin =
User(username='username', email='exam...@example.com',
password=make_password('password'),
is_superuser=True,is_staff=True);admin.save()"



El dom, 7 abr 2024 a las 2:13, ALINDA Fortunate ()
escribió:

> It's my external database is postgres on railway.
>
> Let me try your opinion and I see.
>
> On Sat, 6 Apr 2024, 20:33 Aniket Raj Singh, 
> wrote:
>
>> So you have used render to host your application, you might have
>> connected an external database (postgreSQL or any other) you might have
>> used the environment setup to set the database up with the postgreSQL
>> hosted either on render itself or on a different server, just connect the
>> database with your application on your local host and create a super user
>> since the database is same on the render's server's application the
>> superuser will be same as the superuser you created on the local server
>> thus you can access the admin panel
>>
>>
>> On Saturday 6 April, 2024 at 9:58:00 pm UTC+5:30 ALINDA Fortunate wrote:
>>
>>> Hello I have successfully a django project on render but i have failed
>>> to access the admin panel
>>>
>>> Any idea on how to create a superuser account on a free tier of render
>>>
>>> Below is my build.sh file
>>> #!/usr/bin/env bash
>>> # Exit on error
>>> set -o errexit
>>>
>>>
>>>
>>> # Modify this line as needed for your package manager (pip, poetry, etc.)
>>> pip install -r requirements.txt
>>>
>>> # Convert static asset files
>>> python manage.py collectstatic --no-input
>>>
>>> # Apply any outstanding database migrations
>>> python manage.py migrate
>>>
>>> if [[ $CREATE_SUPERUSER ]];
>>> then
>>>   python world_champ_2022/manage.py createsuperuser --no-input
>>> fi
>>>
>>>
>>>
>>>
>>>
>>>
>>> --
>>> ALINDA Fortunate
>>> Graduate Of Computer Science
>>> Gulu University
>>> Passionate about Software Development in Python
>>> If you can't explain it simply, you don't understand it well enough.
>>> alindafo...@gmail.com.
>>> +256 774339676 <+256%20774%20339676> / +256 702910041
>>> <+256%20702%20910041>
>>> Kagadi.
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/9dabff6a-7f5a-4d30-a097-a128f68a6feen%40googlegroups.com
>> 
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAPifpCsa%2BrmS3OWiycH_309ROvMcazv2Z_E76UcZiZKEb%3D3YPg%40mail.gmail.com
> 
> .
>


-- 
"La utopía sirve para caminar" Fernando Birri

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAG%2B5VyOcJ%2BeL3dTgVHfgW1tjH5p6-qHUzKq83t3z8xK7iNFGdQ%40mail.gmail.com.


Re: Help on Creating a Superuser account on render.

2024-04-07 Thread ALINDA Fortunate
It's my external database is postgres on railway.

Let me try your opinion and I see.

On Sat, 6 Apr 2024, 20:33 Aniket Raj Singh, 
wrote:

> So you have used render to host your application, you might have connected
> an external database (postgreSQL or any other) you might have used the
> environment setup to set the database up with the postgreSQL hosted either
> on render itself or on a different server, just connect the database with
> your application on your local host and create a super user since the
> database is same on the render's server's application the superuser will be
> same as the superuser you created on the local server thus you can access
> the admin panel
>
>
> On Saturday 6 April, 2024 at 9:58:00 pm UTC+5:30 ALINDA Fortunate wrote:
>
>> Hello I have successfully a django project on render but i have failed to
>> access the admin panel
>>
>> Any idea on how to create a superuser account on a free tier of render
>>
>> Below is my build.sh file
>> #!/usr/bin/env bash
>> # Exit on error
>> set -o errexit
>>
>>
>>
>> # Modify this line as needed for your package manager (pip, poetry, etc.)
>> pip install -r requirements.txt
>>
>> # Convert static asset files
>> python manage.py collectstatic --no-input
>>
>> # Apply any outstanding database migrations
>> python manage.py migrate
>>
>> if [[ $CREATE_SUPERUSER ]];
>> then
>>   python world_champ_2022/manage.py createsuperuser --no-input
>> fi
>>
>>
>>
>>
>>
>>
>> --
>> ALINDA Fortunate
>> Graduate Of Computer Science
>> Gulu University
>> Passionate about Software Development in Python
>> If you can't explain it simply, you don't understand it well enough.
>> alindafo...@gmail.com.
>> +256 774339676 <+256%20774%20339676> / +256 702910041
>> <+256%20702%20910041>
>> Kagadi.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/9dabff6a-7f5a-4d30-a097-a128f68a6feen%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAPifpCsa%2BrmS3OWiycH_309ROvMcazv2Z_E76UcZiZKEb%3D3YPg%40mail.gmail.com.


Re: Help on Creating a Superuser account on render.

2024-04-06 Thread Aniket Raj Singh
So you have used render to host your application, you might have connected 
an external database (postgreSQL or any other) you might have used the 
environment setup to set the database up with the postgreSQL hosted either 
on render itself or on a different server, just connect the database with 
your application on your local host and create a super user since the 
database is same on the render's server's application the superuser will be 
same as the superuser you created on the local server thus you can access 
the admin panel


On Saturday 6 April, 2024 at 9:58:00 pm UTC+5:30 ALINDA Fortunate wrote:

> Hello I have successfully a django project on render but i have failed to 
> access the admin panel 
>
> Any idea on how to create a superuser account on a free tier of render
>
> Below is my build.sh file
> #!/usr/bin/env bash
> # Exit on error
> set -o errexit
>
>
>
> # Modify this line as needed for your package manager (pip, poetry, etc.)
> pip install -r requirements.txt
>
> # Convert static asset files
> python manage.py collectstatic --no-input
>
> # Apply any outstanding database migrations
> python manage.py migrate
>
> if [[ $CREATE_SUPERUSER ]];
> then
>   python world_champ_2022/manage.py createsuperuser --no-input
> fi
>
>
>
>
>
>
> -- 
> ALINDA Fortunate
> Graduate Of Computer Science
> Gulu University
> Passionate about Software Development in Python
> If you can't explain it simply, you don't understand it well enough.
> alindafo...@gmail.com.
> +256 774339676 <+256%20774%20339676> / +256 702910041 
> <+256%20702%20910041>
> Kagadi.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/9dabff6a-7f5a-4d30-a097-a128f68a6feen%40googlegroups.com.


Help on Creating a Superuser account on render.

2024-04-06 Thread ALINDA Fortunate
Hello I have successfully a django project on render but i have failed to
access the admin panel

Any idea on how to create a superuser account on a free tier of render

Below is my build.sh file
#!/usr/bin/env bash
# Exit on error
set -o errexit



# Modify this line as needed for your package manager (pip, poetry, etc.)
pip install -r requirements.txt

# Convert static asset files
python manage.py collectstatic --no-input

# Apply any outstanding database migrations
python manage.py migrate

if [[ $CREATE_SUPERUSER ]];
then
  python world_champ_2022/manage.py createsuperuser --no-input
fi






-- 
ALINDA Fortunate
Graduate Of Computer Science
Gulu University
Passionate about Software Development in Python
If you can't explain it simply, you don't understand it well enough.
alindafortuna...@gmail.com .
+256 774339676 / +256 702910041
Kagadi.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAPifpCscJ_H1hAHjgw68iDDyb4gem3Ut7Zw3Ps4uJNqqhFnzLA%40mail.gmail.com.