Re: Challenge hosting a django project on render

2024-04-05 Thread Luciano Martins (luxu)
Did you run the migrations?

Em quinta-feira, 4 de abril de 2024 às 12:43:02 UTC-3, ALINDA Fortunate 
escreveu:

> Hello team I am finding challenges in hosting my project on render it 
> shows the webservice is live and it brings this error any help
>
> Error during template rendering
>
> In template /opt/render/project/src/templates/home.html, error at line *9*
> relation "pages_landingpage" does not exist LINE 1: ...velopment", 
> "pages_landingpage"."philosophy" FROM "pages_lan... ^
> 1  
> 2 {% extends "_base.html" %} 
> 3 {% load static %} 
> 4 
> 5 {% block title %}Home{% endblock title %} 
> 6 
> 7 {% block content %} 
> 8  
> 9 {% for landingpage in homepage_list %} 
> 10  
> 11 {{landingpage.title}} 
> 12  
> 13 
> 14 {% if user.is_authenticated %} 
> 15 Hi {{ user.email }}! Your most welcome. 
> 16 {% else %} 
> 17 You are not logged in 
> 18 Log In 
> 19 {% endif %}
>
> But locally its running well
>
> 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/e2f1866e-70c2-4cf3-a9cb-af9f2eb7ddc1n%40googlegroups.com.


Re: Django to WordPress without api?

2024-02-01 Thread Luciano Martins (luxu)
Este projeto se assemelha ao Wordpress...wagtail...pesquise sobre ele.

Em quinta-feira, 1 de fevereiro de 2024 às 14:21:44 UTC-3, Danish Nagori 
escreveu:

> I have scrapping project which is.develop in django 
> Now.iwant to integrate to WordPress so how
>

-- 
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/4813ca0c-d846-4e4e-af8c-d8fff14c6815n%40googlegroups.com.


Re: Django

2023-10-06 Thread Luciano Martins (luxu)
I'm using the *Vercel *platform in a voluntary project, which already gives 
you a free database. Search about

Em sexta-feira, 6 de outubro de 2023 às 16:16:20 UTC-3, Joyce Mumbi 
escreveu:

> Yes but it is difficult because it's my first time using this tool.
>
>
>
> [image: Mailtrack] 
> 
>  Sender 
> notified by 
> Mailtrack 
> 
>  
> 10/06/23, 10:14:14 PM 
>
> On Fri, 6 Oct 2023 at 20:30, Muhammed Lawal  wrote:
>
>> Hello, what help do you need? Have you tried following the instructions 
>> on the python anywhere website yet? 
>>
>> You can follow this Blog post @ 
>> https://www.google.com/url?sa=t=web=j=89978449=https://www.geeksforgeeks.org/how-to-deploy-django-project-on-pythonanywhere/amp/=2ahUKEwjfoKKR-eGBAxV3U0EAHZPqBIMQFnoECA0QAQ=AOvVaw0ZF0UkUQ0TylnUagH6hNly
>>
>> On Fri, 6 Oct 2023, 4:47 PM Joyce Mumbi  wrote:
>>
>>> Hello am trying to deploy my django ap using python anywhere please help 
>>> out 
>>>
>>>
>>>
>>> [image: Mailtrack] 
>>> 
>>>  Sender 
>>> notified by 
>>> Mailtrack 
>>> 
>>>  10/06/23, 
>>> 04:15:38 PM 
>>>
>>> On Fri, 6 Oct 2023 at 16:11, Qayyam Hussain  
>>> wrote:
>>>
 Yes

 On Fri, Oct 6, 2023, 6:00 PM kemo njie  wrote:

> Hello, am currently a new Django developer, can i put all my django 
> apps in one folder and name it as apps
>
> -- 
> 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...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/8ffca09c-87bc-4358-aa27-bff2977a2dc7n%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...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/django-users/CAOx6qv83R-pnPZwREp1p2dCMdOmrK3UUbET%2BbiuGKt%3DYwF5_9g%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...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/django-users/CAPTUz5nsYUY10Mhxw%3DEQPALAKMvzkvw%2BkoHUbnDdNcKKiy5RbA%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...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/CAOzVPC-Tv5HSRaSrd6HN4dm%3D8xeryn1emOnaFWqgOWT074sD3Q%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/221af423-30e3-432f-a2ac-76ea5b8befb5n%40googlegroups.com.


Re: What to learn after Django, Node.js or React?1

2023-09-11 Thread Luciano Martins (luxu)
learn vuejs

Em segunda-feira, 11 de setembro de 2023 às 09:58:10 UTC-3, TIME CREATORS 
escreveu:

> if you ask me start going in depth of django 
> and start learning React as it can be easily integrated with future 
> projects
>
> On Sunday, 10 September 2023 at 12:10:00 UTC+5:30 abu yahya Diab wrote:
>
>> Hi guys, 
>>
>> I'm a django developer(junior), do you advice me to learn Node.js, or 
>> React to be full Stack developer.
>>
>> Thanks.
>> Abdulrahman
>
>

-- 
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/735749e9-ab0f-4aa3-bcd2-de5a3209921an%40googlegroups.com.


Re: pytest, asgiref, Selenium and database access? How to make them work?

2023-09-07 Thread Luciano Martins (luxu)
Hello, how is your postgres configured, because there is no database called 
test2. this is the error

Em quarta-feira, 6 de setembro de 2023 às 19:08:32 UTC-3, Alfons Eberle 
escreveu:

> Hey, has anyone gotten pytest to work with django-channels (or asgiref + 
> Daphne) and Selenium in general when database access is required?
>
> My fixtures for users and other models import just fine, but my browser 
> and Daphne process seem to be unaware of the test database and seem unable 
> to create them. Frontend errors out with the classic *pytest 
> django.db.utils.OperationalError: connection to server at "127.0.0.1", port 
> 5432 failed: FATAL: database "test2" does not exist*
>
> I am using a Daphne test server implementation I found on SO + GitHub 
> here: https://github.com/pytest-dev/pytest-django/issues/1027
>
> Here's some sample code I have for reference. channels_live_server is 
> from the implementation above. Doing this simply shows the yellow Django 
> error page with the error above.
> I have tried explicitly creating the database, which gets rid of the 
> error, trying to e.g. log in via the admin but it still does not cause the 
> database to fill with any data. It's like they are in two different 
> *worlds* (threads).
>
> All my other pytests run fine.
>
> Any ideas? Thanks
>
>
> @pytest.fixture
> def authenticated_browser_staff(channels_live_server, client):
> """Return a browser instance with logged-in user session."""
> options = webdriver.ChromeOptions()
> browser_ = webdriver.Chrome(options=options)
> user_staff = User.objects.create(
> email='te...@foo.bar', 
> password=make_password('hunter42'),
> is_superuser=True
> ) # usually a fixture, but easier to share like this
> print('staff id', user_staff.id)  # works as expected
>
> client.force_login(user_staff)  # works and returns the session ID
> print('cookie', client.cookies[settings.SESSION_COOKIE_NAME].value)
>
> browser.get(channels_live_server.url + "/admin/")
> browser.add_cookie({
> 'name': settings.SESSION_COOKIE_NAME,
> 'value': client.cookies[settings.SESSION_COOKIE_NAME].value,
> #'expires': None,
> #'secure': False,
> #'path': '/'
> })
> # server responds with setting sessionid to empty
> browser.refresh()
>
> # trying to log in, since passing the cookie does not 
> # work, but errors out with user does not exist
> browser.find_element('name', 'username').send_keys(user_staff.email)
> browser.find_element('name', 'password').send_keys('hunter42')
> browser.find_element(By.CSS_SELECTOR, "input[type='submit']").click()
>
> assert any(c for c in browser.get_cookies() if c['name'] == 
> settings.SESSION_COOKIE_NAME)
> return browser
>
>
>

-- 
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/4c85adda-887e-4c22-b573-55b75f68c8c3n%40googlegroups.com.


Re: IMPORTING HTML CSS TEMPLATE TO DJANGO

2023-01-27 Thread Luciano Martins (luxu)
you have to put the static files and give their path inside the HTML

Em sexta-feira, 27 de janeiro de 2023 às 11:18:14 UTC-3, jack...@gmail.com 
escreveu:

> I want to know the line of error so that I can make them follow the static 
> folder

-- 
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/ad7f5288-f445-44d0-98e8-67860fdcbee1n%40googlegroups.com.


Re: Django app deployment on Heroku

2022-09-18 Thread Luciano Martins (luxu)
Use pipenv? I've seen errors like these for those who use it...

Em domingo, 18 de setembro de 2022 às 13:15:27 UTC-3, 
dashlaksh...@gmail.com escreveu:

> Why do you want to deploy on heroku ??? If you've the premium 
> subscription, you can use it or else use railway or render to deploy app.
>
> On Fri, Sep 16, 2022, 15:00 Wilford Chidawanyika  
> wrote:
>
>> Good day.
>>
>> l need help on how to deploy my django project on Heroku
>>
>> l am getting the below error when l push heroku master
>>
>> Processing 
>> /C:/Windows/TEMP/abs_e9b7158a-aa56-4a5b-87b6-c00d295b01fanefpc8_o/croots/recipe/certifi_1655968940823/work/certifi
>> remote:ERROR: Could not install packages due to an OSError: 
>> [Errno 2] No such file or directory: 
>> '/C:/Windows/TEMP/abs_e9b7158a-aa56-4a5b-87b6-c00d295b01fanefpc8_o/croots/recipe/certifi_1655968940823/work/certifi'
>> remote:
>> remote:  ! Push rejected, failed to compile Python app.
>>
>> -- 
>>
> 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...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/0b172e95-9173-49e7-8b5c-11f8ea397918n%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/cab00ae8-6278-4f1d-9674-8d72284f3c81n%40googlegroups.com.