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.


Re: Erro em uma consulta Sqlite3

2022-08-04 Thread Luciano Martins
É  *annotate*
Publisher.objects.annotate(below_5=below_5).annotate(above_5=above_5)
Em quarta-feira, 3 de agosto de 2022 às 19:31:18 UTC-3, 
alvaroteixe...@gmail.com escreveu:

> Bom dia amigos, estou desenvolvendo um blog e me deparei com um erro em 
> uma consulta, vou mandar o trecho do codigo onde esta o erro:
>
> def get_queryset(self):
> qs = super().get_queryset()
> qs = qs.order_by('-id')
> qs = qs.annotade(
> numero_comentarios=Count(
> Case(
> When(Comentario__publicado_comentario=True, then=1)
> )
> )
> )
>
> return qs
>
> Esse e o erro no terminal:
>
> AttributeError: 'QuerySet' object has no attribute 'annotade'
>

-- 
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/bb9c8102-c7d8-4ec3-9fed-5e78aa84b13en%40googlegroups.com.


Re: How to resolve this error? can anyone please help me?

2022-01-13 Thread Luciano Martins
Hello, basically where you are calling this route you have to pass 
something like this: *{% url 'placeOrder' 1 %}* and it is being called 
without nd like this: *{% url 'placeOrder' %}*, but as posted above it 
would be better to put the code for the person to analyze

Em quinta-feira, 13 de janeiro de 2022 às 12:38:36 UTC-3, 
dashlaksh...@gmail.com escreveu:

> Please share me your code privately so that I can solve your proy as soon 
> as possible.
>
> On Thu, Jan 13, 2022, 20:16 sharath p  wrote:
>
>>
>> Environment:
>>
>>
>> Request Method: GET
>> Request URL: http://127.0.0.1:8000/
>>
>> Django Version: 4.0.1
>> Python Version: 3.10.1
>> Installed Applications:
>> ['django.contrib.admin',
>>  'django.contrib.auth',
>>  'django.contrib.contenttypes',
>>  'django.contrib.sessions',
>>  'django.contrib.messages',
>>  'django.contrib.staticfiles',
>>  'website']
>> Installed Middleware:
>> ['django.middleware.security.SecurityMiddleware',
>>  'django.contrib.sessions.middleware.SessionMiddleware',
>>  'django.middleware.common.CommonMiddleware',
>>  'django.middleware.csrf.CsrfViewMiddleware',
>>  'django.contrib.auth.middleware.AuthenticationMiddleware',
>>  'django.contrib.messages.middleware.MessageMiddleware',
>>  'django.middleware.clickjacking.XFrameOptionsMiddleware']
>>
>>
>> Template error:
>> In template 
>> C:\Users\bhara\desktop\python\ecommerce-python-code\ecommerce-python-code\website\templates\website\navbar.html,
>>  
>> error at line 30
>>Reverse for 'placeOrder' with arguments '('',)' not found. 1 
>> pattern(s) tried: ['placeOrder/(?Pi[^/]+)/\\Z']
>>20 :   li class="nav-item active"
>>21 : a class="nav-link" href="{% url 'home' 
>> %}"Home/a
>>22 :   /li
>>23 :   {% if request.user.is_staff %}
>>24 :   /li
>>25 :   li class="nav-item active"
>>26 : a class="nav-link" href="{% url 'addProduct' 
>> %}"Add Product/a
>>27 :   /li
>>28 :   {% else %}
>>29 :   li class="nav-item"
>>30 : a class="nav-link" href=" {% url 'placeOrder' 
>> request.user.customer.id %} "Cart/a
>>31 :   /li
>>32 :   {% endif %}
>>33 :   li class="nav-item"
>>34 : a class="nav-link" href="{% url 'login' 
>> %}"Login/a
>>35 :   /li
>>36 : /ul
>>37 :   /div
>>38 : 
>>39 :   span class="greet"Hello, {{request.user}}/span
>>40 :   span a  class="greet" href="{% url 'logout' 
>> %}"Logout/a/span
>>
>>
>> Traceback (most recent call last):
>>   File 
>> "C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\core\handlers\exception.py",
>>  
>> line 47, in inner
>> response = get_response(request)
>>   File 
>> "C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\core\handlers\base.py",
>>  
>> line 181, in _get_response
>> response = wrapped_callback(request, *callback_args, 
>> **callback_kwargs)
>>   File 
>> "C:\Users\bhara\desktop\python\ecommerce-python-code\ecommerce-python-code\website\views.py",
>>  
>> line 13, in home
>> return render(request,'website/home.html',context)
>>   File 
>> "C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\shortcuts.py",
>>  
>> line 19, in render
>> content = loader.render_to_string(template_name, context, request, 
>> using=using)
>>   File 
>> "C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\loader.py",
>>  
>> line 62, in render_to_string
>> return template.render(context, request)
>>   File 
>> "C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\backends\django.py",
>>  
>> line 61, in render
>> return self.template.render(context)
>>   File 
>> "C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\base.py",
>>  
>> line 176, in render
>> return self._render(context)
>>   File 
>> "C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\base.py",
>>  
>> line 168, in _render
>> return self.nodelist.render(context)
>>   File 
>> "C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\base.py",
>>  
>> line 977, in render
>> return SafeString(''.join([
>>   File 
>> "C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\base.py",
>>  
>> line 978, in listcomp
>> node.render_annotated(context) for node in self
>>   File 
>> "C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\base.py",
>>  
>> line 938, in render_annotated
>> return self.render(context)
>>   File 
>> "C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\loader_tags.py",
>>  
>> line 153, in render
>> return compiled_parent._render(context)
>>   File 
>> 

Re: Diploy django on DigitalOcean

2021-06-24 Thread Luciano Martins
Good morning...Implementing something on a VPN like Digital Ocean will 
require you to take care and configure everything, part of security, 
database, etc, if possible choose Heroku that already delivers the 
infrastructure ready and you just have to will care about the code...a tip!!

Em quinta-feira, 24 de junho de 2021 às 06:27:30 UTC-3, 
gabriels...@gmail.com escreveu:

> Open the file,it has all you need 
>
> On Thu, 24 Jun 2021 at 09:08 Antonis Christofides <
> ant...@antonischristofides.com> wrote:
>
>> Hi,
>>
>> you can try "Deploying Django on a single Debian or Ubuntu server" at 
>> djangodeployment.com or djangodeployment.readthedocs.io.
>>
>> Regards,
>>
>> Antonis
>>
>> Antonis Christofides+30-6979924665 <+30%20697%20992%204665> (mobile)
>>
>>
>> On 24/06/2021 10.20, Eugene TUYIZERE wrote:
>>
>> Hello Team, 
>>
>> I need some tutorials and steps to deploy a django app on DigitalOcean. 
>> Note that I already have the domain what it remaining is only to host.
>>
>> Thank you
>>
>> -- 
>> *Eugene*
>>
>> -- 
>> 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/CABxpZHsoWK1zUBgu8a4CERk0AcK2pm3zG_pa8Kv%3D7vGtXXbr_g%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/b9895365-b303-948f-88c6-3b7f43a57c82%40antonischristofides.com
>>  
>> 
>> .
>>
> -- 
> Gabrielstone
>

-- 
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/a8447748-48c4-468b-bd5b-12c0cd7d63d7n%40googlegroups.com.


Re: Help me Please - Django and python program

2021-06-20 Thread Luciano Martins
Post your code on github and provide the link here

Em sábado, 19 de junho de 2021 às 22:00:24 UTC-3, mayanksand...@gmail.com 
escreveu:

> I have a few errors in my program.
> 1. HTML
> In my front view only my last text box is working and all the upper text 
> boxes are unassessable. 
> 2. Database
> I am getting only the user quantity in the database but not getting the 
> itemname, price and total amount in it.
>
> I don't know where it is going wrong, I've been stuck here for the last 4 
> days. I'm a beginner in django and python. Which logic is used for this 
> program?
> Please, please help me.
>
> PFA
>

-- 
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/9feed719-8ab5-4523-80a1-ad062fe1999en%40googlegroups.com.


Re: PLS HELP!! - SCRAPE YOUTUBE CHANNEL EMAIL

2021-06-20 Thread Luciano Martins
Do you want to download gmail content?

Em sábado, 19 de junho de 2021 às 22:00:01 UTC-3, vrusha...@gmail.com 
escreveu:

> Hi Guys ,
> Anyone knows how to scrape Youtube Channels Emails?
>
> With Django/Python?
>
> If yes,
> Pls reply!
> Thanks.
>

-- 
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/38813719-4428-43e5-bf5e-d475c1066bd9n%40googlegroups.com.


Re: Problem to connect to database only when run "migrate"

2021-06-20 Thread Luciano Martins

have you configured mysql database in settings.py?
Em sábado, 19 de junho de 2021 às 09:19:09 UTC-3, her...@gmail.com escreveu:

> Hello,
>
> I getting problem to connect to database only when run "migrate". I'm able 
> to use on apache/wsgi and runserver, so it's seens that connection to 
> database is okay. Dango is running on docker.
>
> Anyone can help me ?
>
>
>
>
>
> bash-4.2# python manage.py migrate
> /usr/local/lib/python2.7/site-packages/jwt/utils.py:8: 
> CryptographyDeprecationWarning: Python 2 is no longer supported by the 
> Python core team. Support for it is now deprecated in cryptography, and 
> will be removed in the next release.
>   from cryptography.hazmat.primitives.asymmetric.utils import (
> Traceback (most recent call last):
>   File "manage.py", line 46, in 
> execute_from_command_line(sys.argv)
>   File 
> "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py", 
> line 364, in execute_from_command_line
> utility.execute()
>   File 
> "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py", 
> line 356, in execute
> self.fetch_command(subcommand).run_from_argv(self.argv)
>   File 
> "/usr/local/lib/python2.7/site-packages/django/core/management/base.py", 
> line 283, in run_from_argv
> self.execute(*args, **cmd_options)
>   File 
> "/usr/local/lib/python2.7/site-packages/django/core/management/base.py", 
> line 327, in execute
> self.check()
>   File 
> "/usr/local/lib/python2.7/site-packages/django/core/management/base.py", 
> line 359, in check
> include_deployment_checks=include_deployment_checks,
>   File 
> "/usr/local/lib/python2.7/site-packages/django/core/management/commands/migrate.py",
>  
> line 61, in _run_checks
> issues = run_checks(tags=[Tags.database])
>   File 
> "/usr/local/lib/python2.7/site-packages/django/core/checks/registry.py", 
> line 81, in run_checks
> new_errors = check(app_configs=app_configs)
>   File 
> "/usr/local/lib/python2.7/site-packages/django/core/checks/database.py", 
> line 10, in check_database_backends
> issues.extend(conn.validation.check(**kwargs))
>   File 
> "/usr/local/lib/python2.7/site-packages/django/db/backends/mysql/validation.py",
>  
> line 9, in check
> issues.extend(self._check_sql_mode(**kwargs))
>   File 
> "/usr/local/lib/python2.7/site-packages/django/db/backends/mysql/validation.py",
>  
> line 13, in _check_sql_mode
> with self.connection.cursor() as cursor:
>   File 
> "/usr/local/lib/python2.7/site-packages/django/db/backends/base/base.py", 
> line 254, in cursor
> return self._cursor()
>   File 
> "/usr/local/lib/python2.7/site-packages/django/db/backends/base/base.py", 
> line 229, in _cursor
> self.ensure_connection()
>   File 
> "/usr/local/lib/python2.7/site-packages/django/db/backends/base/base.py", 
> line 213, in ensure_connection
> self.connect()
>   File "/usr/local/lib/python2.7/site-packages/django/db/utils.py", line 
> 94, in __exit__
> six.reraise(dj_exc_type, dj_exc_value, traceback)
>   File 
> "/usr/local/lib/python2.7/site-packages/django/db/backends/base/base.py", 
> line 213, in ensure_connection
> self.connect()
>   File 
> "/usr/local/lib/python2.7/site-packages/django/db/backends/base/base.py", 
> line 189, in connect
> self.connection = self.get_new_connection(conn_params)
>   File 
> "/usr/local/lib/python2.7/site-packages/django/db/backends/mysql/base.py", 
> line 274, in get_new_connection
> conn = Database.connect(**conn_params)
>   File "/usr/local/lib64/python2.7/site-packages/MySQLdb/__init__.py", 
> line 81, in Connect
> return Connection(*args, **kwargs)
>   File "/usr/local/lib64/python2.7/site-packages/MySQLdb/connections.py", 
> line 193, in __init__
> super(Connection, self).__init__(*args, **kwargs2)
> django.db.utils.OperationalError: (2003, "Can't connect to MySQL server on 
> '192.168.201.193' (113)")
> bash-4.2# python manage.py check
> /usr/local/lib/python2.7/site-packages/jwt/utils.py:8: 
> CryptographyDeprecationWarning: Python 2 is no longer supported by the 
> Python core team. Support for it is now deprecated in cryptography, and 
> will be removed in the next release.
>   from cryptography.hazmat.primitives.asymmetric.utils import (
>
> 2021-06-18 20:00:05 [DEBUG] [boto:provider:get_credentials:280] 
> [MainThread]
> Using access key provided by client.
>
> 2021-06-18 20:00:05 [DEBUG] [boto:provider:get_credentials:307] 
> [MainThread]
> Using secret key provided by client.
>
> 2021-06-18 20:00:05 [DEBUG] [boto:provider:get_credentials:280] 
> [MainThread]
> Using access key provided by client.
>
> 2021-06-18 20:00:05 [DEBUG] [boto:provider:get_credentials:307] 
> [MainThread]
> Using secret key provided by client.
> System check identified no issues (0 silenced).
>
> Regards,
> _
>
> Heron
> her...@gmail.com
> _
>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" 

Re: help me plz: getting error while importing csv file into database

2021-06-20 Thread Luciano Martins
you have to pass the 'path' variable into open I believe that's it

Em sexta-feira, 18 de junho de 2021 às 15:22:41 UTC-3, rammano...@gmail.com 
escreveu:

> Hi 
> i am trying to import the csv file data into database 
>  my views.py 
> def Filter(request):
> if request.method=="POST":
> form = DataForm(request.POST, request.FILES)
> if form.is_valid():
> initial_obj = form.save(commit=False)
> data=initial_obj['data']
> path="C:\\Users\\ramma\\Downloads\\assesment.csv"
> os.chdir(path)
>
> with open('assesment.csv') as csvfile:
> reader = csv.DictReader(csvfile)
> for row in reader:
> file=data(name=row['product'],)
>
> initial_obj.save()
> file.save()
> return redirect('/')
> else:
> return render(request,'index.html',{'form':form})
> else:
> return render(request,'index.html',{'form':form})
>
>
> def search(request):
> list = data.objects.all()
> data_filter = DataFilter(request.GET, queryset=list)
> return render(request, 'product.html', {'filter': data_filter})
>
>

-- 
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/779d973e-ca1e-481d-a8cf-5feba8b32448n%40googlegroups.com.


Re: Need to volunteer in a django project to emprove my knowledge

2021-06-17 Thread Luciano Martins
it also accepts dev BR, but I don't speak english and I use google 
translator

Em quinta-feira, 17 de junho de 2021 às 14:40:43 UTC-3, swiss...@gmail.com 
escreveu:

> https://github.com/swisscodes
>
> On Thu, Jun 17, 2021 at 5:50 PM Williams Andy Inc  
> wrote:
>
>> Its open for anyone ready to participate just add me on my github or msg 
>> me here we can do some google meets or zoom ,,, for example now i want to 
>> add the edit and delete button using jquery and ajax.. so it stays on same 
>> page.
>> we can collaborate and learn
>>
>> On Thu, Jun 17, 2021 at 4:05 PM Boris Pérez  wrote:
>>
>>> I´m intrested on participate too...is it posiible??? Thanks, Boris
>>>
>>> 2021-06-17 8:13 GMT-04:00, Williams Andy Inc :
>>> > I currently have a django project going on incase you want to learn or
>>> > contribute or collaborate for learning.
>>> >
>>> > https://swiss-social.herokuapp.com/
>>> >
>>> > code https://github.com/swisscodes/social-app
>>> >
>>> > anyone want to learn or collaborate msg me. we could do video learning 
>>> by
>>> > zoom or google. can share my knowledge and learn from you
>>> >
>>> > On Thu, Jun 17, 2021 at 3:00 PM Nikeet NA  
>>> wrote:
>>> >
>>> >> OK that interesting I can help.
>>> >>
>>> >> On Thursday, 17 June 2021 at 17:03:28 UTC+5:30 flavie...@gmail.com 
>>> wrote:
>>> >>
>>> >>> Actually im not working on any django project but i was working on
>>> >>> geodjango in the past
>>> >>> Flavien
>>> >>>
>>> >>> On 6/17/21, Nikeet NA  wrote:
>>> >>> > What type of project are you working upon ?
>>> >>> >
>>> >>> > On Thursday, 17 June 2021 at 16:51:01 UTC+5:30 flavie...@gmail.com
>>> >>> wrote:
>>> >>> >
>>> >>> >> hi guys in term of improving my knowledge in building Django 
>>> project,
>>> >>> >> i need to be a volunteer
>>> >>> >> I'm good in English and fluent in French
>>> >>> >>
>>> >>> >> My WhatsApp number:+243815357825 <+243%20815%20357%20825> 
>>> <+243%20815%20357%20825>
>>> >>> <+243%20815%20357%20825>
>>> >>> >> thank you so much
>>> >>> >> Flavien
>>> >>> >>
>>> >>> >> --
>>> >>> >> FLAVIEN HERI
>>> >>> >>
>>> >>> >> *Information management AscociateUNHCR-Kinshasa*
>>> >>> >> Tél:+243978587009 <+243%20978%20587%20009> 
>>> <+243%20978%20587%20009> <+243%20978%20587%20009>
>>> >>> >> Skype: flavien.heri1
>>> >>> >> Facebook: flavien semi
>>> >>> >>
>>> >>> >
>>> >>> > --
>>> >>> > 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/12f66979-6742-4552-b09e-eec6dc9e169an%40googlegroups.com
>>> .
>>> >>>
>>> >>> >
>>> >>>
>>> >>>
>>> >>> --
>>> >>> FLAVIEN HERI
>>> >>>
>>> >>> *Information management AscociateUNHCR-Kinshasa*
>>> >>> Tél:+243978587009 <+243%20978%20587%20009> <+243%20978%20587%20009>
>>> >>> Skype: flavien.heri1
>>> >>> Facebook: flavien semi
>>> >>>
>>> >> --
>>> >> 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/6691c88c-14d5-40b1-91fe-7b8466c559a6n%40googlegroups.com
>>> >> <
>>> https://groups.google.com/d/msgid/django-users/6691c88c-14d5-40b1-91fe-7b8466c559a6n%40googlegroups.com?utm_medium=email_source=footer
>>> >
>>> >> .
>>> >>
>>> >
>>> > --
>>> > 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/CAPCthNK3ZOoO77OSo6wYFatzo-Y0KPx8OD33Q5b6%3DaFgrYufVw%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/CAObPVPDK_3%2B0gmqfAt6FCpD4yAeuS1TgPcuPnvYd1E6wcZBDuw%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/96fd4049-b1a3-417b-8fe5-7ad5929c307bn%40googlegroups.com.


Re: How can i start to learn django?

2021-06-14 Thread Luciano Martins
Docs Django is a start!

Em domingo, 13 de junho de 2021 às 11:22:22 UTC-3, desai...@gmail.com 
escreveu:

> I am begginer in python. how can i start to learn django from begginners 
> to adance. please help me.

-- 
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/320cecdc-6af3-4748-8aba-68a3664783aan%40googlegroups.com.


Re: Report like "matrix with Django ORM

2021-05-10 Thread Luciano Martins
coloque seu code no github...

Em domingo, 9 de maio de 2021 às 23:09:09 UTC-3, wwran...@gmail.com 
escreveu:

> Hi dudes,
>
> I have to render a template with  a "matrix" data, I was trying to perform 
> it with querys in orm but i can´t figure out how because the relationships 
> of the models.
>
> The idea is to show the members and what's months are paid in a specific 
> year.
>
> *Template's out  to feed:*
> [image: template.jpg]
> *Models:*
> [image: models.jpg]
>
> Any ideas about how to do this with queries?
>
> Thanks in Adcvance!!!
>

-- 
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/cecce065-1204-4c99-a54d-a51d1f6decd5n%40googlegroups.com.


Re: How to use .vue files in Django project

2021-02-26 Thread Luciano Martins
Good morning, in our project we created a folder called FRONTEND and inside 
it we put all Quasar / VueJs code and used the DRF (Django Rest Framework) 
to consume Django data.

Em quinta-feira, 25 de fevereiro de 2021 às 19:35:42 UTC-3, Ryan Nowakowski 
escreveu:

> On Thu, Feb 25, 2021 at 04:24:25PM +0530, Salima Begum wrote:
> > I have developed a project by using django and for front end 
> functionality
> > I am using vuejs so, how to use .vue files in django project in my 
> project
> > .vue files are not accepting.
>
> Can you provide more details like the error messages you're seeing?
>
> You might need to use the Vue CLI[1] to transform the .vue files into .js
> that you can then serve using Django's staticfiles. There are several[3]
> tutorials[4] online.
>
> [1] 
> https://vuejs.org/v2/guide/single-file-components.html#For-Users-New-to-Module-Build-Systems-in-JavaScript
> [2] https://docs.djangoproject.com/en/3.1/howto/static-files/
> [3] 
> https://www.valentinog.com/blog/vue-django/#serving-the-single-page-with-django-in-production
> [4] https://www.google.com/search?q=django+vuejs
>

-- 
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/04d66d78-f98a-42ed-975c-c41b8b48abf8n%40googlegroups.com.


Re: How to pass multiple query sets in Django?

2021-02-17 Thread Luciano Martins
show the sql you're trying to ...

Em terça-feira, 16 de fevereiro de 2021 às 10:58:44 UTC-3, 
anilse...@gmail.com escreveu:

>
> How to pass multiple query sets in Django?
>

-- 
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/f767d1e0-2c41-4f42-a588-c1e9665a971bn%40googlegroups.com.


Re: how to install pyenv-virtualenv on windows

2021-01-10 Thread Luciano Martins
Look I gave up trying on windows and use virtualenv same.

Em sábado, 9 de janeiro de 2021 às 21:55:06 UTC-3, sohailta...@gmail.com 
escreveu:

> im facing difficulty to install pyenv-virtual env on my windows 10
> i googled it several times but it directs me to a git repo where there is 
> an installation process but is of no use because, the command that is 
> displayed is not working in my cmd 
> please help me out
>

-- 
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/1a73a4b5-b12e-473b-9018-be14e584381en%40googlegroups.com.


Re: Redirect one page to another on Django tremplate

2021-01-09 Thread Luciano Martins
Put your github repo

Em sábado, 9 de janeiro de 2021 às 08:11:31 UTC-3, Joel T escreveu:

> You can try using the javascript window.locqtion.href('redirect-url')
>
> On 7 Jan 2021 10:07 pm, "pankaj palmate"  wrote:
>
>> can you elaborate it more means are you taking about Response?
>>
>>
>> On Thursday, January 7, 2021 at 10:48:33 PM UTC+5:30 amanmo...@gmail.com 
>> wrote:
>>
>>> Hello Django Lover,
>>>
>>> I have a doubt how can we redirect one page to another on API response / 
>>> fetch response on Django template .
>>>
>> -- 
>> 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/b96bed14-da97-4f0e-a9d5-a1b044f45dc7n%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/601487a1-6211-4cd2-a959-c406defc8b11n%40googlegroups.com.


Re: pass a parameter into sql raw string and execute django

2020-12-20 Thread Luciano Martins
Could you show your whole project?

Em sábado, 19 de dezembro de 2020 às 23:32:26 UTC-3, jul.ale...@gmail.com 
escreveu:

> Hello
>
> First, create a query.py , just for order.
>
> [image: image.png]
>
> and declare a function with the parameters you want to receive.
>
> Then, in your views.py 
> [image: image.png]
>
>
> you need to import connection from django.db 
>
> finally , you can iterate over the rows fetched with one for loop.
>
> [image: image.png]
>
> You have to validate the input in your sql to avoid sql injection, the 
> documentation tell something about it django documentation 
> 
>
>
> regards.
>
> El sáb, 19 dic 2020 a las 10:21, Ronald Kamulegeya (<
> ronald.kamu...@gmail.com>) escribió:
>
>> I want to pass parameter in view and i execute the insert query as shown 
>> below.
>>
>> I have searched and failed to get a solution.
>>
>> Any hints.
>>
>> Here is the code. My attempt is shown but not correct.
>>
>> def post_payroll(request,p_id):
>> p_id=2
>> with connection.cursor() as cursor:
>> query = "insert into 
>> payroll_payrolltemp(ndays,sdays,ot1hr,ot2hr,advance,bonus,penalty,post_status,worker_id,payperiod_id)"
>> "select 0,0,0,0,0,0,0,0,sw.id,"
>> str(p_id) +" as payperiod_id from staff_worker as sw"
>> "where   sw.id in (select  w.worker_id from staff_workerpay as w 
>> where w .pay_frequency_id=1) order by sw.id"
>> 
>> cursor.execute(query)
>>
>> -- 
>> 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/fe44ecbd-2555-4826-98e8-038212730a74n%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/d3feb243-1694-44f0-841e-b9ebaa7078b7n%40googlegroups.com.


Re: Exception Type: TemplateSyntaxError at /login/ Exception Value: Invalid block tag on line 23: 'csrf_tocken', expected 'endblock'. Did you forget to register or load this tag?

2020-11-27 Thread Luciano Martins
It is misspelled, the right is *csrf_token*

Em quinta-feira, 26 de novembro de 2020 às 14:57:37 UTC-3, 
dils...@gmail.com escreveu:

> hi friends,
>
> please help me to  resolve this issue..
>
>
> Environment:
>
>
> Request Method: GET
> Request URL: http://127.0.0.1:8000/login/
>
> Django Version: 3.1.3
> Python Version: 3.9.0
> Installed Applications:
> ['django.contrib.admin',
>  'django.contrib.auth',
>  'django.contrib.contenttypes',
>  'django.contrib.sessions',
>  'django.contrib.messages',
>  'django.contrib.staticfiles',
>  'log']
> Installed Middleware:
> ['django.middleware.security.SecurityMiddleware',
>  'django.contrib.sessions.middleware.SessionMiddleware',
>  'django.middleware.common.CommonMiddleware',
>  'django.middleware.csrf.CsrfViewMiddleware',
>  'django.contrib.auth.middleware.AuthenticationMiddleware',
>  'django.contrib.messages.middleware.MessageMiddleware',
>  'django.middleware.clickjacking.XFrameOptionsMiddleware']
>
>
> Template error:
> In template C:\django-projects\dp1\site1\log\templates\log\login.html, 
> error at line 23
>Invalid block tag on line 23: 'csrf_tocken', expected 'endblock'. Did 
> you forget to register or load this tag?
>13 :
>14 :
>15 :
>16 : {% extends "log/base.html" %}
>17 : {% block content %}
>18 : Login page
>19 : 
>20 : 
>21 : 
>22 : 
>23 :  {% csrf_tocken %} 
>24 : 
>25 : 
>26 :   placeholder="Enter Username" name="username">
>27 : 
>28 : 
>29 : 
>30 : 
>31 :  class="form-control" placeholder="Enter Password" name="password">
>32 : 
>33 : 
>
>
> Traceback (most recent call last):
>   File 
> "C:\django-projects\venv\lib\site-packages\django\template\base.py", line 
> 470, in parse
> compile_func = self.tags[command]
>
> During handling of the above exception ('csrf_tocken'), another exception 
> occurred:
>   File 
> "C:\django-projects\venv\lib\site-packages\django\core\handlers\exception.py",
>  
> line 47, in inner
> response = get_response(request)
>   File 
> "C:\django-projects\venv\lib\site-packages\django\core\handlers\base.py", 
> line 179, in _get_response
> response = wrapped_callback(request, *callback_args, **callback_kwargs)
>   File "C:\django-projects\dp1\site1\log\views.py", line 20, in login_user
> return render(request, 'log/login.html', {})
>   File "C:\django-projects\venv\lib\site-packages\django\shortcuts.py", 
> line 19, in render
> content = loader.render_to_string(template_name, context, request, 
> using=using)
>   File 
> "C:\django-projects\venv\lib\site-packages\django\template\loader.py", line 
> 61, in render_to_string
> template = get_template(template_name, using=using)
>   File 
> "C:\django-projects\venv\lib\site-packages\django\template\loader.py", line 
> 15, in get_template
> return engine.get_template(template_name)
>   File 
> "C:\django-projects\venv\lib\site-packages\django\template\backends\django.py",
>  
> line 34, in get_template
> return Template(self.engine.get_template(template_name), self)
>   File 
> "C:\django-projects\venv\lib\site-packages\django\template\engine.py", line 
> 143, in get_template
> template, origin = self.find_template(template_name)
>   File 
> "C:\django-projects\venv\lib\site-packages\django\template\engine.py", line 
> 125, in find_template
> template = loader.get_template(name, skip=skip)
>   File 
> "C:\django-projects\venv\lib\site-packages\django\template\loaders\base.py", 
> line 29, in get_template
> return Template(
>   File 
> "C:\django-projects\venv\lib\site-packages\django\template\base.py", line 
> 155, in __init__
> self.nodelist = self.compile_nodelist()
>   File 
> "C:\django-projects\venv\lib\site-packages\django\template\base.py", line 
> 193, in compile_nodelist
> return parser.parse()
>   File 
> "C:\django-projects\venv\lib\site-packages\django\template\base.py", line 
> 478, in parse
> raise self.error(token, e)
>   File 
> "C:\django-projects\venv\lib\site-packages\django\template\base.py", line 
> 476, in parse
> compiled_result = compile_func(self, token)
>   File 
> "C:\django-projects\venv\lib\site-packages\django\template\loader_tags.py", 
> line 270, in do_extends
> nodelist = parser.parse()
>   File 
> "C:\django-projects\venv\lib\site-packages\django\template\base.py", line 
> 478, in parse
> raise self.error(token, e)
>   File 
> "C:\django-projects\venv\lib\site-packages\django\template\base.py", line 
> 476, in parse
> compiled_result = compile_func(self, token)
>   File 
> "C:\django-projects\venv\lib\site-packages\django\template\loader_tags.py", 
> line 213, in do_block
> nodelist = parser.parse(('endblock',))
>   File 
> 

Re: reg: Django resource requirement for a Start-up project.

2020-11-22 Thread Luciano Martins
Good morning, here in Brazil we have a specific website for python jobs, 
you can register the job there if you want ...
www.pyjobs.com.br

Em domingo, 22 de novembro de 2020 às 01:07:18 UTC-3, Amitesh Sahay 
escreveu:

> Dear Members. 
>
> We are launching a start-up in some month. A  basic website on Django 
> platform have already been developed. However, we still need some more 
> features to be developed and enabled on the web application.
>
> Any candidate who are interested. Please connect with me  on 
> *amites...@yahoo.com 
> *with your full name and direct contact number along with below details.
>
> Requirements:
>
> 1) 6 month - 2 years in Django.
> 2) having good knowledge on developing algorithm.
> 3) 1 - 2 years in Python.
> 4) 1 - 2 years in HTML, CSS, Jinja templating.
>
> Even freshers are considered 
>
> *Note*: 
>
> 1) Candidate who would be eligible for the project has to *sign a Non- 
> Disclosure Agreement.*
> 2) Very good compensation.
> 3) The candidate would be working very closely with the CTO of the 
> organization. 
> 4) we would be more than glad to absorb the candidate as a full time 
> employee after certain time period.
> 5) There is no such strict interview process. We are looking for a 
> candidate who can complete the task irrespective of the work experience.
>
> Please do not hesitate to ask any question if any. We would be more than 
> glad to make you comfortable and give right environment to work on the 
> development work.
>
> Regards,
> Amitesh Sahay
> *amites...@yahoo.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/ecd388d0-2ef1-4be6-a6d3-e6555048e483n%40googlegroups.com.


Re: Debbuging

2020-11-16 Thread Luciano Martins
What strikes me is that this table has *__old* at the end, that's why I 
asked you for the repository link to try to understand it right!

Em segunda-feira, 16 de novembro de 2020 às 01:25:57 UTC-3, 
bharath...@gmail.com escreveu:

> Hi,
>
> Run 
> python manage.py makemigrations
>
> python manage.py migrate
>
> It will create tables in database using your models
>
> All the best
>
> On Mon, Nov 16, 2020 at 8:58 AM Sidy Mactar  wrote:
>
>> it's done
>>
>> Le lundi 16 novembre 2020 à 03:22:48 UTC, zica...@gmail.com a écrit :
>>
>>> please post your repository
>>>
>>> Em domingo, 15 de novembro de 2020 às 19:42:30 UTC-3, 
>>> sidymo...@gmail.com escreveu:
>>>
 OperationalError at /admin/products/products/add/no such table: 
 main.auth_user__old 
 Can u help me plz? 

>>> -- 
>> 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/de49ec22-08fe-4731-80c8-9a8c2d112a1bn%40googlegroups.com
>>  
>> 
>> .
>>
>
>
> -- 
> Thanks and Regards
>
> J. Ranga Bharath
> cell: 9110334114
>

-- 
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/1cf1e361-cb49-48fe-89c8-9a5f5c8e002an%40googlegroups.com.


Re: Debbuging

2020-11-15 Thread Luciano Martins
please post your repository

Em domingo, 15 de novembro de 2020 às 19:42:30 UTC-3, sidymo...@gmail.com 
escreveu:

> OperationalError at /admin/products/products/add/no such table: 
> main.auth_user__old 
> Can u help me plz? 
>

-- 
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/dd6ab047-cba7-4c13-9954-dec0c755ec0bn%40googlegroups.com.


Re: ModelSelect2 field doesn't appear

2020-07-17 Thread Luciano Martins
Must be missing the jquery that has to come before select2's js

Em sexta-feira, 17 de julho de 2020 10:57:22 UTC-3, Nathan Duy Le escreveu:
>
> Hi all!
> I've been losing hair trying to figure out why a ModelSelect2 field works 
> on one ModelForm but not the other almost identical one.  Please save me 
> from going mad!
>
> In the browser's console, I'm getting the error message:
> jQuery.Deferred exception: $(...).select2 is not a function TypeError: 
> $(...).select2 is not a function
> at HTMLSelectElement. (
> http://localhost:8000/static/autocomplete_light/select2.js:102:17)
> at HTMLDocument.dispatch (
> https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js:2:41772)
> at HTMLDocument.y.handle (
> https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js:2:39791)
> at Object.trigger (
> https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js:2:69551)
> at HTMLSelectElement. (
> https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js:2:70146)
> at Function.each (
> https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js:2:2573)
> at w.fn.init.each (
> https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js:2:1240)
> at w.fn.init.trigger (
> https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js:2:70122)
> at HTMLSelectElement.initialize (
> http://localhost:8000/static/autocomplete_light/autocomplete.init.js:47:20
> )
> at Function.each (
> https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js:2:2573) 
> undefined
> w.Deferred.exceptionHook @ jquery.min.js:2
> c @ jquery.min.js:2
> setTimeout (async)
> (anonymous) @ jquery.min.js:2
> u @ jquery.min.js:2
> fireWith @ jquery.min.js:2
> fire @ jquery.min.js:2
> u @ jquery.min.js:2
> fireWith @ jquery.min.js:2
> ready @ jquery.min.js:2
> _ @ jquery.min.js:2
> jquery.min.js:2 Uncaught TypeError: $(...).select2 is not a function
> at HTMLSelectElement. (select2.js:102)
> at HTMLDocument.dispatch (jquery.min.js:2)
> at HTMLDocument.y.handle (jquery.min.js:2)
> at Object.trigger (jquery.min.js:2)
> at HTMLSelectElement. (jquery.min.js:2)
> at Function.each (jquery.min.js:2)
> at w.fn.init.each (jquery.min.js:2)
> at w.fn.init.trigger (jquery.min.js:2)
> at HTMLSelectElement.initialize (autocomplete.init.js:47)
> at Function.each (jquery.min.js:2)
>
>
>
> 1. I've tried  using the same ModelChoiceField as below on another 
> ModelForm and it worked perfectly.
> 2. if I remove the ModelChoiceField for the referred_from field, the field 
> displays ok with a normal dropdown for choices.
> 3. if I leave the ModelChoiceField for the referred_from field as it is 
> below, the field will show up with only one selectable choice ("").
>
>
> My non-working code:
> forms.py
> class CustomerEntryForm(ModelForm):
> referred_from = 
> forms.ModelChoiceField(queryset=ReferredFrom.objects.all(), 
> widget=autocomplete.ModelSelect2(url='referred-from-autocomplete', attrs={
> 'data-placeholder': 'Search...',
> }))
>
> class Meta:
> model = Customer
> widgets = {
> 'notes': forms.Textarea(attrs={'rows': 2, 'cols': 30}),
> }
> fields = ['referred_from', 'nickname', 'first_name', 'last_name', 
> 'home_address', 'birthdate', 'phone', 'email',  'notes', 'ID1', 'ID2', 
> 'DOC1', 'DOC2']
>
>
> views.py:
> def customer_new(request, representative):
> rep_obj = Representative.objects.get(alias=representative)
> if request.method == "POST":
>
> form = CustomerEntryForm(request.POST, files=request.FILES)
>
> if form.is_valid():
> instance = form.save(commit=False)
> instance.entered_by_rep = rep_obj
> instance.save()
> return redirect('customer_details', pk=instance.id)
> else:
> form = CustomerEntryForm()
> return render(request, 'transactions/customer_new.html', {'form': 
> form})
>
>
> customer_new.html:
> {% extends 'base.html' %}
>
> {% load static %}
>
> {% block content %}
>
>
> {{ form.media }}
>
>
>   
>   Nouveau Client / New Customer 
>
>  enctype='multipart/form-data'>
>   {% csrf_token %}
>   
>   {{ form.as_table }}
>   
>   
>   
>   
>
> 
>
>   
>
> {% endblock %}
>
>
>
> This template works (the view and ModelForm class are pretty much 
> identical):
>
> {% extends "base.html" %}
>
> {% load static %}
>
> {% block content %}
>
>
> {% if form.errors %}
> {% for field in form %}
> {% for error in field.errors %}
> 
> {{ error|escape }}
> 
> {% endfor %}
> {% endfor %}
> {% for error in form.non_field_errors %}
> 
> {{ error|escape }}
> 
> {% endfor %}
> {% endif %}
>
> {{ form.media }}
>
>
> 
>
> ATM Balance Transaction
>
> 
> {% csrf_token %}
> 
> {{ form.as_table }}
> 
>
>  value="Save">
> 
> 

Re: Django support

2020-07-14 Thread Luciano Martins
Hi, there is a BR site only for jobs that python and someone might be 
interested ... www.pyjobs.com.br

Em segunda-feira, 13 de julho de 2020 09:11:41 UTC-3, lakshmi priya 
escreveu:
>
> I’m in need of a tutor who is more than 4 years experienced in Django and 
> who can help me with real time projects with Django framework 

-- 
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/39195922-5832-4f6d-8013-765cb9d494c0o%40googlegroups.com.


Re: Is there a better way to change the default server port?

2020-07-08 Thread Luciano Martins
python manage.py runserver localhost:5000

Em quarta-feira, 8 de julho de 2020 12:56:58 UTC-3, Kshitij Kotasthane 
escreveu:
>
> I recently started using django and because port 8000 on my PC was already 
> occupied, I had to modify the runserver.py file directly to start on 
> another port. By default, shouldn't there be an option in manage.py or 
> settings.py to modify the port to start the test server on? Or am I missing 
> something?
>
> Because this is very inconvenient as well,
>
> python manage.py runserver 5000
>

-- 
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/b0b77299-ed6e-4dcf-984e-79a52ca8e332o%40googlegroups.com.


Re: How to get data from django model to the excel sheet.

2020-07-06 Thread Luciano Martins
To work with excell within Django projects we use the *openxl  *library, 
but you can't use it directly, you need to build scripts that bring you 
what you want.

Em segunda-feira, 6 de julho de 2020 03:59:29 UTC-3, Ashutosh Mishra 
escreveu:
>
> I want to get the data from the django model contans(name,age,photo) on a 
> excel sheet.
> How can i do that.
>

-- 
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/d23bd1a1-982b-4d31-8b3b-c97a3c35341do%40googlegroups.com.


Re: Need Covid 19 Database for Experiments

2020-07-04 Thread Luciano Martins
Hello, you have an excellent job done by devs and Brazilian journalists...

https://brasil.io/covid19/

Em quinta-feira, 2 de julho de 2020 14:38:51 UTC-3, Balaji escreveu:
>
> Hi
>
> Can anyone provide me Covid 19 Database.
> I need Covid 19 Database for Experiments 
>
> Thank you 
>
>
> -- 
> Mr Shetty Balaji
> Asst. Prof.
> IT Department
> SGGS I
> Nanded. My. India
>
>

-- 
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/33f46c79-c80c-456e-9cc1-f1d43167a593o%40googlegroups.com.


Re: Collapsible list menu with Django

2020-06-12 Thread Luciano Martins
Search by crispy 

-- 
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/e2185ead-d4b4-48ec-8698-11185f7fb79fo%40googlegroups.com.


Re: Required Python Django developers

2020-06-06 Thread Luciano Martins
Brazilian Developer is allowed to send?

Em sábado, 6 de junho de 2020 12:09:37 UTC-3, maninder singh Kumar escreveu:
>
> Dear all,
>
> We require python django developers for a HR project.  Please answer to 
> maninde...@gmail.com  if interested.
>
> regards
> Willy
>

-- 
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/e5acaa8f-7b5f-4f4f-875a-b04583cc76c5o%40googlegroups.com.


Re: Configure a VPS

2020-06-04 Thread Luciano Martins
https://simpleisbetterthancomplex.com/tutorial/2016/10/14/how-to-deploy-to-digital-ocean.html

Em quarta-feira, 3 de junho de 2020 17:05:22 UTC-3, Giovanni Silva escreveu:
>
> I need to deploy a django application on my vps server
>
> alguém tem algum passo a passo de como configurar o VPS?  my system is 
> windows
>
> -- 
> *Giovanni Silva*
> (31) 9 9532-1877
>

-- 
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/7dd7f012-d2af-404b-93b4-fc9986a07c99%40googlegroups.com.