Re: Django Uploaded images not displayed in production

2020-06-22 Thread MUGOYA DIHFAHSIH
thanks Anton, i will also give nginx a try but currently the client has a
domain with namecheap with shared host plan and that is where he wants me
to deploy the application but name cheap has apache web server


On Sun, 21 Jun 2020 at 22:10, Anton Nyagolov  wrote:

> So guys I have found the problem. My Nginx server was only serving static
> files but not media ones, I have probably forgot about it.
> My Nginx settings were:
> The only thing I had to do is add a location for the media folder:
>
>
> @MUGOYA DIHFAHSIH
> At the begging of setting the server I also used apache2, it was pain in
> the ass and I switched to Nguix and Gunicorn. Setting the server over
> apache took me like 60-70 steps. With Nguix and Gunicorn it takes only 20
> steps, for 15 min you are all set up.
> Watch this video and follow the guy: How to Deploy Python-Django serveer
> in 20 min 
>
> --
> 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/343c056c-cd83-4ce2-a898-ecf21ef0165fo%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/CAP%3DJD9xJXWuZVN%2Bpwk9pJJefPp%3DOuyqRCzfFCa%3DOEksb5CqvpA%40mail.gmail.com.


Project Collaboration Team

2020-06-22 Thread Shubhanshu Arya
Hello Everyone, 
I want to make a team in which we will make some very good level projects 
together. These projects will be very helpful in our interview as well. 
Must have prior knowledge about Django/Python. We will do daily meetings 
and discuss our project and we will use Github to team collaborations . If 
someone is interested to join this team please email me on 
shubhanshuarya...@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/53b14968-ae6f-428a-be58-5edd290f2487o%40googlegroups.com.


Re: Proxy User and AUTH_USER_MODEL: TypeError: MyUser cannot proxy the swapped model 'myapp.MyUser'.

2020-06-22 Thread Eugene Kulak
It is not clear why it is not possible and what is the rationale behind 
this limitation? I see a lot of questions about this error. Perhaps a nice 
receipt what to do instead could help. For my understanding using the Proxy 
model as Custom User Model is most natural way to override some User's 
methods (like set password, etc)... Importing my custom model instead is 
not an option, as the User model used in Admin and standard views.

Thanks,

On Sunday, April 15, 2018 at 10:10:58 PM UTC-3, Tim Graham wrote:
>
> The behavior seems expected. 
> https://docs.djangoproject.com/en/dev/topics/auth/customizing/#custom-users-and-proxy-models
>
> It looks like if you use a proxy model, then you should import it where 
> needed rather than use AUTH_USER_MODEL.
>
> On Saturday, April 14, 2018 at 6:34:59 PM UTC-4, Nicolas Pantel wrote:
>>
>> Hi,
>>
>> I need help on the topic: Proxy for User model referenced as 
>> AUTH_USER_MODEL.
>>
>> As stated in the doc, needing to add some methods to User model, I tried 
>> to make a 'proxy' model.
>>
>> I made a 'from scratch app', with only a MyUser(User) model, and 
>> AUTH_USER_MODEL = 'myapp.MyUser' in settings.py
>> MyUser has only 'class Meta: proxy = True'
>>
>> On a ./manage.py shell (for example), I have the following traceback:
>>
>> Traceback (most recent call last):
>>>   File "./manage.py", line 22, in 
>>> execute_from_command_line(sys.argv)
>>>   File 
>>> "/usr/local/lib/python3.6/dist-packages/django/core/management/__init__.py",
>>>  line 363, in execute_from_command_line
>>> utility.execute()
>>>   File 
>>> "/usr/local/lib/python3.6/dist-packages/django/core/management/__init__.py",
>>>  line 337, in execute
>>> django.setup()
>>>   File "/usr/local/lib/python3.6/dist-packages/django/__init__.py", line 
>>> 27, in setup
>>> apps.populate(settings.INSTALLED_APPS)
>>>   File "/usr/local/lib/python3.6/dist-packages/django/apps/registry.py", 
>>> line 108, in populate
>>> app_config.import_models()
>>>   File "/usr/local/lib/python3.6/dist-packages/django/apps/config.py", line 
>>> 202, in import_models
>>> self.models_module = import_module(models_module_name)
>>>   File "/usr/lib/python3.6/importlib/__init__.py", line 126, in 
>>> import_module
>>> return _bootstrap._gcd_import(name[level:], package, level)
>>>   File "", line 978, in _gcd_import
>>>   File "", line 961, in _find_and_load
>>>   File "", line 950, in _find_and_load_unlocked
>>>   File "", line 655, in _load_unlocked
>>>   File "", line 678, in exec_module
>>>   File "", line 205, in 
>>> _call_with_frames_removed
>>>   File "/home/npantel/proxy_user/proxy_user/models.py", line 4, in 
>>> class MyUser(User):
>>>   File "/usr/local/lib/python3.6/dist-packages/django/db/models/base.py", 
>>> line 158, in __new__
>>> raise TypeError("%s cannot proxy the swapped model '%s'." % (name, 
>>> base_meta.swapped))
>>> TypeError: MyUser cannot proxy the swapped model 'proxy_user.MyUser'.
>>>
>>>
>> Anybody already tried to use proxy on User model?
>>
>> Thanks,
>> Nicolas Pantel
>>
>

-- 
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/9c22f6fd-8dfe-4798-929f-d28e17ed8589o%40googlegroups.com.


Re: Search returned after deployment to Heroku

2020-06-22 Thread Kasper Laudrup

Hi Sunday,

On 22/06/2020 23.35, sunday honesty wrote:

My search functionnlaity worked fine and is even working well now on my local 
host but always returns error when I run it on heroku. (Server error)

How has any idea pls



Look at the logs on the server to figure out the actual cause of the error.

If you haven't set it up already, have a look here:

https://docs.djangoproject.com/en/3.0/topics/logging/

Kind regards,

Kasper Laudrup

--
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/c6211310-7329-4801-8b6a-09540fb60026%40stacktrace.dk.


Search returned after deployment to Heroku

2020-06-22 Thread sunday honesty
My search functionnlaity worked fine and is even working well now on my local 
host but always returns error when I run it on heroku. (Server error)

How has any idea pls

-- 
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/0555aaff-73a5-4a4b-a91e-46f4af934072o%40googlegroups.com.


Re: FileNotFoundError at /urlpath, after hosting Django project to Heroku

2020-06-22 Thread jakote lejaha
Thank you very much. Everything worked after specifying the path to the
pdflatex.


Virus-free.
www.avast.com

<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Thu, Jun 18, 2020 at 12:07 PM Kasper Laudrup 
wrote:

> Hej Lejaha
>
> On 18/06/2020 11.42, lejaha...@gmail.com wrote:
> > Created a an application that generates pdf-files from latex templates
> > saved on the project, using the subprocess('pdflatex nameofTemplate' )
> > method.
> > The application works fine, locally. But does not work on the server and
> > returns "[Errno 2] No such file or directory: 'pdflatex mytexfile.tex':
> > 'pdflatex mytexfile.tex'", everytime I call the method to generate the
> > latex files.
> >
> > Please kindly advise on how I can make the pdflatex and latex files
> > accessible to my subprocess.call() method.
> >
>
> By installing pdflatex on the server and ensuring its in the path of the
> user running the application or giving the full path to the pdflatex
> executable in the call to subprocess.
>
> How to install software on the server depends on the OS of the server
> and how its maintained and you'll most likely have better luck getting
> answers if you ask whoever is maintaining the server.
>
> Kind regards,
>
> Kasper Laudrup
>
> --
> 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/3b5e415d-4893-4abc-d892-bacd99c9fba2%40stacktrace.dk
> .
>

-- 
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/CACjM_BcD7kgK4YHYi8XNb024SOT3QQasM2ZApNhm%2BYafe%3D2hOQ%40mail.gmail.com.


Dynamically Create Folders For User From A Django App Hosted on Heroku.

2020-06-22 Thread lejaha...@gmail.com
I am currently trying to generate reports for all the users to my 
application, and since a user can decide to generate one/more report(s). I 
have managed to create a new folder for a user inside the root directory 
every time they generate the report(s). The app works perfectly fine on my 
local machine, but the folders are not being created on the app hosted in 
Heroku. 

Could anyone kindly advise on how to go about this.

-- 
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/7162d38e-b9f9-43ac-9c8c-28d3373e1d2bn%40googlegroups.com.


How to add domain from GoDaddy to Heroku

2020-06-22 Thread sunday honesty
Has anyone here added a custom domain from GoDaddy to Heroku?

I have not been able to configure my DNS correctly after following tons of 
articles online... GoDaddy don't seem to have good customer care for my country 
and no live support available?

The issue is, I have bought the domain and added it to Heroku and generated the 
target for DNS.
On Heroku, I entered manage DNS to add the target url generated from Heroku and 
got a bad request (400) error if I set CNAME to www and value to the target 
from Heroku. I have followed the exact step I got from online and non is 
working for me.
Anyone who can help me will be appreciated.

-- 
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/1d9e5495-21b0-4a32-8e68-bad285d46684o%40googlegroups.com.


Re: Which is a better

2020-06-22 Thread osman gone
Class is best for model.

On Tue, Jun 23, 2020, 12:10 AM Fredrick Edward 
wrote:

> Views and models created using functions or classes?
>
> --
> 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/CA%2B-KUj%2BdNoFuzP039gpJjxkeovzG5xF5f%3D_X7XgFpc%3DFAXO1iA%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/CAJXMv4exw51hT6ozFj_mrgrqWUbRWKC8NJgKXAj-2Q4%3Dig14Dg%40mail.gmail.com.


Re: I'm new to this django help me out

2020-06-22 Thread sree lekha
How to send live output that we got on our screen ... It should display the
same if they open that in phone or anything...how can we do that?

On Fri, May 15, 2020, 21:48 Sunday Iyanu Ajayi 
wrote:

>  You can host the project on a server and share the url
>
> Or can you enlighten me on what you mean by output?- The Web app ?
> *AJAYI Sunday *
> (+234) 806 771 5394
> *sunnexaj...@gmail.com *
>
>
>
> On Fri, May 15, 2020 at 3:15 PM sree lekha 
> wrote:
>
>> how can i share the output of a django program to others
>>
>> --
>> 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/CAC0VY9zxM0SaSoQF5QpywiKbvy0g1LijoB5%2B%3D2y_Ak1gvwmnFQ%40mail.gmail.com
>> 
>> .
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-users/NCMvHAhAEkg/unsubscribe.
> To unsubscribe from this group and all its topics, 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/CAKYSAw3WxqupqA0%3DesFXqNBa_sGs%2Bc3%3Dwih3HmgxyfwYvHL1vw%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/CAC0VY9z-8fF%2BbKnW2BsYU-nzGAxC8NpjYGsqcxmjk6%3D3wSD3rg%40mail.gmail.com.


Re: how to fetch data into a template (table)

2020-06-22 Thread Larry Martell
On Sat, Jun 20, 2020 at 11:41 AM Faith Mwai  wrote:
>
> Am having a challenge of displaying data into my template table, the function 
> is;
>
> def customers(request):
> if request.method == 'POST':
> accountno = request.POST['accountno']
> id= request.POST['id']
> Mobilenumber = request.POST['Mobilenumber']
> cursor = con.cursor()
> querystring = ("Select Messages, amount, date from Accounts where 
> accountno = 'accountno' or Mobilenumber = 'Mobilenumber' ")
>
> cursor.execute(querystring)
>
> rows = cursor.fetchall()
> context = {'querystring': querystring}
> con.close()
> if cursor.rowcount == 0:
> return render(request,'kplcapp/customers.html', context)
> else:
> rows = cursor.fetchall()
> return render('kplcapp/customers.html', context)
> return render(request, 'kplcapp/customers.html', context)
>
> if 'print' in request.form:
> df = pd.DataFrame(result)
> df.to_excel(r"C:\Users\Public\Documents\data3.xlsx")
> else:
> return render(request, 'kplcapp/customers.html', context)

Why are you using raw SQL for such a simple query. In any case you
need to replace the strings with the variables.

 querystring = ("Select Messages, amount, date from Accounts where
accountno = '%s' or Mobilenumber = '%s' " % (accountno, Mobilenumber))

-- 
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/CACwCsY76PTax6MrD3zL99NJEB%3DSnnoP5izVJczQxFqBbKhbWaw%40mail.gmail.com.


Re: how to fetch data into a template (table)

2020-06-22 Thread Kasper Laudrup

Hi Faith,

On 20/06/2020 12.27, Faith Mwai wrote:
Am having a challenge of displaying data into my template table, the 
function is;


def customers(request):
 if request.method =='POST':
 accountno= request.POST['accountno']
 id= request.POST['id']
 Mobilenumber = request.POST['Mobilenumber']
 cursor = con.cursor()
 querystring = ("Select Messages, amount, date from Accounts where accountno = 
'accountno' or Mobilenumber = 'Mobilenumber' ")


cursor.execute(querystring)



Isn't this a textbook example of an SQL injection?

I seriously don't know if there's anything to prevent that in this code, 
but someone else might know.


I'm mainly wondering why you're using raw SQL in the first place?

Kind regards,

Kasper Laudrup

--
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/40d1c9b2-ead4-3600-504b-4cdd7c49302f%40stacktrace.dk.


Re: Error Deployment

2020-06-22 Thread Kasper Laudrup

Hi Giovanni,

On 22/06/2020 20.21, Giovanni Silva wrote:

Hi everybody.

I have an VPS and I'm trying to configure it to deploy some djangos app.

I'm follow this tutorial, but I had an error
https://www.techsupportpk.com/2019/08/how-to-set-up-django-with-postgres-nginx-gunicorn-ubuntu-1904.html 



The relevant error is here:

Jun 22 19:26:27 vmi404911.contaboserver.net 
 systemd[1]: Started gunicorn daemon.
Jun 22 19:26:28 vmi404911.contaboserver.net 
 gunicorn[11839]: usage: gunicorn 
[OPTIONS] [APP_MODULE]
Jun 22 19:26:28 vmi404911.contaboserver.net 
 gunicorn[11839]: gunicorn: error: 
No application module specified.


You haven't specified any options to the gunicorn executable in your 
.system file.


Have a look at your /etc/systemd/system/gunicorn.service (if you named 
it the same as in the tutorial) or post it here.


Kind regards,

Kasper Laudrup

--
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/21d20609-d3fb-e33f-4fc2-b19255d6ea27%40stacktrace.dk.


Error Deployment

2020-06-22 Thread Giovanni Silva
Hi everybody.

I have an VPS and I'm trying to configure it to deploy some djangos app.

I'm follow this tutorial, but I had an error
https://www.techsupportpk.com/2019/08/how-to-set-up-django-with-postgres-nginx-gunicorn-ubuntu-1904.html


 gmrsbh@vmi404911:~/testprojectdir$ sudo systemctl status gunicorn
● gunicorn.service - gunicorn daemon
 Loaded: loaded (/etc/systemd/system/gunicorn.service; disabled; vendor
preset: enabled)
 Active: failed (Result: exit-code) since Mon 2020-06-22 19:26:28 CEST;
3min 54s ago
TriggeredBy: ● gunicorn.socket
Process: 11839
ExecStart=/home/gmrsbh/testprojectdir/testprojectenv/bin/gunicorn
(code=exited, status=2)
   Main PID: 11839 (code=exited, status=2)

Jun 22 19:26:27 vmi404911.contaboserver.net systemd[1]: Started gunicorn
daemon.
Jun 22 19:26:28 vmi404911.contaboserver.net gunicorn[11839]: usage:
gunicorn [OPTIONS] [APP_MODULE]
Jun 22 19:26:28 vmi404911.contaboserver.net gunicorn[11839]: gunicorn:
error: No application module specified.
Jun 22 19:26:28 vmi404911.contaboserver.net systemd[1]: gunicorn.service:
Main process exited, code=exited, status=2/INVALIDARGUMENT
Jun 22 19:26:28 vmi404911.contaboserver.net systemd[1]: gunicorn.service:
Failed with result 'exit-code'.
Jun 22 19:26:28 vmi404911.contaboserver.net systemd[1]: gunicorn.service:
Start request repeated too quickly.
Jun 22 19:26:28 vmi404911.contaboserver.net systemd[1]: gunicorn.service:
Failed with result 'exit-code'.
Jun 22 19:26:28 vmi404911.contaboserver.net systemd[1]: Failed to start
gunicorn daemon.

Can anyone help me?
-- 
*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/CABO2r9dLyx5tR58LKQVCmBBXhA2mrR65ncH9qopJ4wK7G9GTOw%40mail.gmail.com.


Re: Which is a better

2020-06-22 Thread mohamed khaled
if you want to learn and see what happens use function based view but you need 
to write a lot compared with class based view it's simple and easy. someimes 
you can work with both after creating a lot of projects you will know when you 
will use class or function depends how are they easy. it's better to know both 
and work with both

On Jun 22 2020, at 8:09 pm, Fredrick Edward  wrote:
> Views and models created using functions or classes?
>
> --
> 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 
> (https://link.getmailspring.com/link/44e59166-6f30-4143-91ff-8a0ec13e2...@getmailspring.com/0?redirect=mailto%3Adjango-users%2Bunsubscribe%40googlegroups.com=ZGphbmdvLXVzZXJzQGdvb2dsZWdyb3Vwcy5jb20%3D).
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/CA%2B-KUj%2BdNoFuzP039gpJjxkeovzG5xF5f%3D_X7XgFpc%3DFAXO1iA%40mail.gmail.com
>  
> (https://link.getmailspring.com/link/44e59166-6f30-4143-91ff-8a0ec13e2...@getmailspring.com/1?redirect=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fdjango-users%2FCA%252B-KUj%252BdNoFuzP039gpJjxkeovzG5xF5f%253D_X7XgFpc%253DFAXO1iA%2540mail.gmail.com%3Futm_medium%3Demail%26utm_source%3Dfooter=ZGphbmdvLXVzZXJzQGdvb2dsZWdyb3Vwcy5jb20%3D).

-- 
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/44E59166-6F30-4143-91FF-8A0EC13E2320%40getmailspring.com.


Which is a better

2020-06-22 Thread Fredrick Edward
Views and models created using functions or classes?

-- 
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/CA%2B-KUj%2BdNoFuzP039gpJjxkeovzG5xF5f%3D_X7XgFpc%3DFAXO1iA%40mail.gmail.com.


Re: Manage.py not working

2020-06-22 Thread Puneet Makhija
Hello piyush sir
Please reply sir please reply my question

On Mon, Jun 22, 2020, 10:39 PM Piyush Jangid 
wrote:

> Try to change the directory of your app i.e try "cd C://
> ../texts1/text1 whatever where your namage.py is and then run command.
> Thank you
> Piyush jangid
>
> On Sat, 20 Jun 2020, 9:11 pm Tanisha Jain, 
> wrote:
>
>> Hi everyone,
>> I am new to Django platform. Whenever I am trying to create a new app
>> using  ( python manage.py startapp app1) then I am not able to create app.
>> Neither I get any error message in logs. Can someone plz suggest me what to
>> do now?
>>
>> --
>> 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/6b4c856f-0849-409a-b77a-b31038572aado%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/CALtK9W--o1cacuCsnrsMpVtvsSexG3Qdr12BC1tduvx7%3Dsct%3Dw%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/CAHqz0_ZFX9LiF%2B40OishXCVfa75U%3DJrL__Bo6sMnHjfQfauabg%40mail.gmail.com.


Re: Manage.py not working

2020-06-22 Thread Piyush Jangid
Try to change the directory of your app i.e try "cd C://
../texts1/text1 whatever where your namage.py is and then run command.
Thank you
Piyush jangid

On Sat, 20 Jun 2020, 9:11 pm Tanisha Jain, 
wrote:

> Hi everyone,
> I am new to Django platform. Whenever I am trying to create a new app
> using  ( python manage.py startapp app1) then I am not able to create app.
> Neither I get any error message in logs. Can someone plz suggest me what to
> do now?
>
> --
> 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/6b4c856f-0849-409a-b77a-b31038572aado%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/CALtK9W--o1cacuCsnrsMpVtvsSexG3Qdr12BC1tduvx7%3Dsct%3Dw%40mail.gmail.com.


Re: how to fetch data into a template (table)

2020-06-22 Thread Faith Mwai
Yes in an HTML template

On Saturday, June 20, 2020 at 6:41:57 PM UTC+3, Faith Mwai wrote:
>
> Am having a challenge of displaying data into my template table, the 
> function is;
>
> def customers(request):
> if request.method == 'POST':
> accountno = request.POST['accountno']
> id= request.POST['id']
> Mobilenumber = request.POST['Mobilenumber']
> cursor = con.cursor()
> querystring = ("Select Messages, amount, date from Accounts where 
> accountno = 'accountno' or Mobilenumber = 'Mobilenumber' ")
>
> cursor.execute(querystring)
>
> rows = cursor.fetchall()
> context = {'querystring': querystring}
> con.close()
> if cursor.rowcount == 0:
> return render(request,'kplcapp/customers.html', context)
> else:
> rows = cursor.fetchall()
> return render('kplcapp/customers.html', context)
> return render(request, 'kplcapp/customers.html', context)
>
> if 'print' in request.form:
> df = pd.DataFrame(result)
> df.to_excel(r"C:\Users\Public\Documents\data3.xlsx")
> else:
> return render(request, 'kplcapp/customers.html', context)
>
>

-- 
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/831c3ce7-3902-4c90-9f3a-143b3418f293o%40googlegroups.com.


Re: how to fetch data into a template (table)

2020-06-22 Thread Jatin Agrawal
Where do you want to display the data? in HTML template?

On Saturday, June 20, 2020 at 9:11:57 PM UTC+5:30, Faith Mwai wrote:
>
> Am having a challenge of displaying data into my template table, the 
> function is;
>
> def customers(request):
> if request.method == 'POST':
> accountno = request.POST['accountno']
> id= request.POST['id']
> Mobilenumber = request.POST['Mobilenumber']
> cursor = con.cursor()
> querystring = ("Select Messages, amount, date from Accounts where 
> accountno = 'accountno' or Mobilenumber = 'Mobilenumber' ")
>
> cursor.execute(querystring)
>
> rows = cursor.fetchall()
> context = {'querystring': querystring}
> con.close()
> if cursor.rowcount == 0:
> return render(request,'kplcapp/customers.html', context)
> else:
> rows = cursor.fetchall()
> return render('kplcapp/customers.html', context)
> return render(request, 'kplcapp/customers.html', context)
>
> if 'print' in request.form:
> df = pd.DataFrame(result)
> df.to_excel(r"C:\Users\Public\Documents\data3.xlsx")
> else:
> return render(request, 'kplcapp/customers.html', context)
>
>

-- 
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/4f27fc06-7a11-4ae2-89ee-8fe431f68e23o%40googlegroups.com.


Re: Retrieve Data in DataBaeses

2020-06-22 Thread Jatin Agrawal
First, you need to understand the basics of Django. Follow this tutorial to 
get the basics, make sure you watch every video and practice what's taught 
in it.

link: https://www.codingforentrepreneurs.com/projects/try-django-111

On Sunday, June 21, 2020 at 12:43:04 AM UTC+5:30, waqar khan wrote:
>
> I have recently start in Django
> I have create a simple project Registration Form in save database  
> Mysqlite3,
> But, how to retrieve data database show in html file table formet ,
>
> Please any guide 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/4d690158-224e-42af-9c7e-a9d214904d7eo%40googlegroups.com.


Re: help

2020-06-22 Thread Jatin Agrawal
Are you using postgres?

On Monday, June 22, 2020 at 8:34:55 PM UTC+5:30, Peter Kirieny wrote:
>
> can someone help with this please
>
> django.db.utils.OperationalError: FATAL:  password authentication failed 
> for user "Admin"
>

-- 
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/cea920f9-7c3d-4eb7-89fc-c61135652807o%40googlegroups.com.


Error while using manage.py

2020-06-22 Thread fordaX
Make sure you have sqlite installed on your Windows machine.
You can install it from the link below:
https://www.sqlite.org/download.html

-- 
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/76cf5c7d-5085-4df6-a467-e38b91dac17do%40googlegroups.com.


Re: Error while using manage.py

2020-06-22 Thread misraX x
Make sure you have sqlite installed on your Windows machine.
You can install it from the link below:
https://www.sqlite.org/download.html


On Mon, Jun 22, 2020 at 5:11 PM Franz Ulenaers  wrote:

> please install sqlite3
>
> Op maandag 22 juni 2020 16:17:54 UTC+2 schreef NAVEEN RS:
>
>> [image: Screenshot (48).png]
>>
>> I am using conda virtual enviroment to use django for my project . I am
>> learning django from telusko youtube channel . First time while using
>> python manage.py runserver , python manage.py startapp hari . Everything
>> was quit great and working finely after I have closed my visual studio code
>> and opened I have got a huge list of import errors what should I do now
>> what happened to my virtual environment . Please help me friends I am
>> highly believing you all
>> Watching for file changes with StatReloader
>> Exception in thread django-main-thread:
>> Traceback (most recent call last):
>>   File "C:\Users\Naveen\anaconda3\lib\threading.py", line 926, in
>> _bootstrap_inner
>> self.run()
>>   File "C:\Users\Naveen\anaconda3\lib\threading.py", line 870, in run
>> self._target(*self._args, **self._kwargs)
>>   File
>> "C:\Users\Naveen\anaconda3\lib\site-packages\django\utils\autoreload.py",
>> line 53, in wrapper
>> fn(*args, **kwargs)
>>   File
>> "C:\Users\Naveen\anaconda3\lib\site-packages\django\core\management\commands\runserver.py",
>> line 109, in inner_run
>> autoreload.raise_last_exception()
>>   File
>> "C:\Users\Naveen\anaconda3\lib\site-packages\django\utils\autoreload.py",
>> line 76, in raise_last_exception
>> raise _exception[1]
>>   File
>> "C:\Users\Naveen\anaconda3\lib\site-packages\django\core\management\__init__.py",
>> line 357, in execute
>> autoreload.check_errors(django.setup)()
>>   File
>> "C:\Users\Naveen\anaconda3\lib\site-packages\django\utils\autoreload.py",
>> line 53, in wrapper
>> fn(*args, **kwargs)
>>   File "C:\Users\Naveen\anaconda3\lib\site-packages\django\__init__.py",
>> line 24, in setup
>> apps.populate(settings.INSTALLED_APPS)
>>   File
>> "C:\Users\Naveen\anaconda3\lib\site-packages\django\apps\registry.py", line
>> 114, in populate
>> app_config.import_models()
>>   File
>> "C:\Users\Naveen\anaconda3\lib\site-packages\django\apps\config.py", line
>> 211, in import_models
>> self.models_module = import_module(models_module_name)
>>   File "C:\Users\Naveen\anaconda3\lib\importlib\__init__.py", line 127,
>> in import_module
>> return _bootstrap._gcd_import(name[level:], package, level)
>>   File "", line 1006, in _gcd_import
>>   File "", line 983, in _find_and_load
>>   File "", line 967, in
>> _find_and_load_unlocked
>>   File "", line 677, in _load_unlocked
>>   File "", line 728, in exec_module
>>   File "", line 219, in
>> _call_with_frames_removed
>>   File
>> "C:\Users\Naveen\anaconda3\lib\site-packages\django\contrib\auth\models.py",
>> line 2, in 
>> from django.contrib.auth.base_user import AbstractBaseUser,
>> BaseUserManager
>>   File
>> "C:\Users\Naveen\anaconda3\lib\site-packages\django\contrib\auth\base_user.py",
>> line 47, in 
>> class AbstractBaseUser(models.Model):
>>   File
>> "C:\Users\Naveen\anaconda3\lib\site-packages\django\db\models\base.py",
>> line 121, in __new__
>> new_class.add_to_class('_meta', Options(meta, app_label))
>>   File
>> "C:\Users\Naveen\anaconda3\lib\site-packages\django\db\models\base.py",
>> line 325, in add_to_class
>> value.contribute_to_class(cls, name)
>>   File
>> "C:\Users\Naveen\anaconda3\lib\site-packages\django\db\models\options.py",
>> line 208, in contribute_to_class
>> self.db_table = truncate_name(self.db_table,
>> connection.ops.max_name_length())
>>   File
>> "C:\Users\Naveen\anaconda3\lib\site-packages\django\db\__init__.py", line
>> 28, in __getattr__
>> return getattr(connections[DEFAULT_DB_ALIAS], item)
>>   File "C:\Users\Naveen\anaconda3\lib\site-packages\django\db\utils.py",
>> line 207, in __getitem__
>> backend = load_backend(db['ENGINE'])
>>   File "C:\Users\Naveen\anaconda3\lib\site-packages\django\db\utils.py",
>> line 111, in load_backend
>> return import_module('%s.base' % backend_name)
>>   File "C:\Users\Naveen\anaconda3\lib\importlib\__init__.py", line 127,
>> in import_module
>> return _bootstrap._gcd_import(name[level:], package, level)
>>   File
>> "C:\Users\Naveen\anaconda3\lib\site-packages\django\db\backends\sqlite3\base.py",
>> line 14, in 
>> from sqlite3 import dbapi2 as Database
>>   File "C:\Users\Naveen\anaconda3\lib\sqlite3\__init__.py", line 23, in
>> 
>> from sqlite3.dbapi2 import *
>>   File "C:\Users\Naveen\anaconda3\lib\sqlite3\dbapi2.py", line 27, in
>> 
>> from _sqlite3 import *
>> ImportError: DLL load failed: The specified module could not be found.
>>
>> --
> 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 

Re: Error while using manage.py

2020-06-22 Thread Franz Ulenaers
please install sqlite3

Op maandag 22 juni 2020 16:17:54 UTC+2 schreef NAVEEN RS:
>
> [image: Screenshot (48).png]
>
> I am using conda virtual enviroment to use django for my project . I am 
> learning django from telusko youtube channel . First time while using 
> python manage.py runserver , python manage.py startapp hari . Everything 
> was quit great and working finely after I have closed my visual studio code 
> and opened I have got a huge list of import errors what should I do now 
> what happened to my virtual environment . Please help me friends I am 
> highly believing you all
> Watching for file changes with StatReloader
> Exception in thread django-main-thread:
> Traceback (most recent call last):
>   File "C:\Users\Naveen\anaconda3\lib\threading.py", line 926, in 
> _bootstrap_inner
> self.run()
>   File "C:\Users\Naveen\anaconda3\lib\threading.py", line 870, in run
> self._target(*self._args, **self._kwargs)
>   File 
> "C:\Users\Naveen\anaconda3\lib\site-packages\django\utils\autoreload.py", 
> line 53, in wrapper
> fn(*args, **kwargs)
>   File 
> "C:\Users\Naveen\anaconda3\lib\site-packages\django\core\management\commands\runserver.py",
>  
> line 109, in inner_run
> autoreload.raise_last_exception()
>   File 
> "C:\Users\Naveen\anaconda3\lib\site-packages\django\utils\autoreload.py", 
> line 76, in raise_last_exception
> raise _exception[1]
>   File 
> "C:\Users\Naveen\anaconda3\lib\site-packages\django\core\management\__init__.py",
>  
> line 357, in execute
> autoreload.check_errors(django.setup)()
>   File 
> "C:\Users\Naveen\anaconda3\lib\site-packages\django\utils\autoreload.py", 
> line 53, in wrapper
> fn(*args, **kwargs)
>   File "C:\Users\Naveen\anaconda3\lib\site-packages\django\__init__.py", 
> line 24, in setup
> apps.populate(settings.INSTALLED_APPS)
>   File 
> "C:\Users\Naveen\anaconda3\lib\site-packages\django\apps\registry.py", line 
> 114, in populate
> app_config.import_models()
>   File 
> "C:\Users\Naveen\anaconda3\lib\site-packages\django\apps\config.py", line 
> 211, in import_models
> self.models_module = import_module(models_module_name)
>   File "C:\Users\Naveen\anaconda3\lib\importlib\__init__.py", line 127, in 
> import_module
> return _bootstrap._gcd_import(name[level:], package, level)
>   File "", line 1006, in _gcd_import
>   File "", line 983, in _find_and_load
>   File "", line 967, in 
> _find_and_load_unlocked
>   File "", line 677, in _load_unlocked
>   File "", line 728, in exec_module
>   File "", line 219, in 
> _call_with_frames_removed
>   File 
> "C:\Users\Naveen\anaconda3\lib\site-packages\django\contrib\auth\models.py", 
> line 2, in 
> from django.contrib.auth.base_user import AbstractBaseUser, 
> BaseUserManager
>   File 
> "C:\Users\Naveen\anaconda3\lib\site-packages\django\contrib\auth\base_user.py",
>  
> line 47, in 
> class AbstractBaseUser(models.Model):
>   File 
> "C:\Users\Naveen\anaconda3\lib\site-packages\django\db\models\base.py", 
> line 121, in __new__
> new_class.add_to_class('_meta', Options(meta, app_label))
>   File 
> "C:\Users\Naveen\anaconda3\lib\site-packages\django\db\models\base.py", 
> line 325, in add_to_class
> value.contribute_to_class(cls, name)
>   File 
> "C:\Users\Naveen\anaconda3\lib\site-packages\django\db\models\options.py", 
> line 208, in contribute_to_class
> self.db_table = truncate_name(self.db_table, 
> connection.ops.max_name_length())
>   File 
> "C:\Users\Naveen\anaconda3\lib\site-packages\django\db\__init__.py", line 
> 28, in __getattr__
> return getattr(connections[DEFAULT_DB_ALIAS], item)
>   File "C:\Users\Naveen\anaconda3\lib\site-packages\django\db\utils.py", 
> line 207, in __getitem__
> backend = load_backend(db['ENGINE'])
>   File "C:\Users\Naveen\anaconda3\lib\site-packages\django\db\utils.py", 
> line 111, in load_backend
> return import_module('%s.base' % backend_name)
>   File "C:\Users\Naveen\anaconda3\lib\importlib\__init__.py", line 127, in 
> import_module
> return _bootstrap._gcd_import(name[level:], package, level)
>   File 
> "C:\Users\Naveen\anaconda3\lib\site-packages\django\db\backends\sqlite3\base.py",
>  
> line 14, in 
> from sqlite3 import dbapi2 as Database
>   File "C:\Users\Naveen\anaconda3\lib\sqlite3\__init__.py", line 23, in 
> 
> from sqlite3.dbapi2 import *
>   File "C:\Users\Naveen\anaconda3\lib\sqlite3\dbapi2.py", line 27, in 
> 
> from _sqlite3 import *
> ImportError: DLL load failed: The specified module could not be found. 
>
>

-- 
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/9513c09b-4232-4c41-ada1-b02b1ad7d564o%40googlegroups.com.


help

2020-06-22 Thread Peter Kirieny
can someone help with this please

django.db.utils.OperationalError: FATAL:  password authentication failed
for user "Admin"

-- 
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/CAL8t8eooUCTmDSNix8xhN8n65DnqXU5b-H-iFJuGhDFs-Zf-NQ%40mail.gmail.com.


Reg:Request to join Django project

2020-06-22 Thread Divakar Upadhyay
Hello,
I am a .Net mvc developer.I have work experience of more than 5 years in
IT.But I want to join any project whose development is going on Django. So
please anyone who wants a partner please let me know. I am a freshman in
Django.
Find my contact details below:
mobile number: 9372129286
SkypeId:upadhyaydivakar1991
email:upadhyaydivakar1...@gmail.com


Thanks and Regards,
Divakar Upadhyay

-- 
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/CAG5yzPCjp260aUUkrmHMWryKO%3DgcghzWg9kaSrEwaWegeW9nmw%40mail.gmail.com.


Re: Collaborators

2020-06-22 Thread Budi Hermansyah
Hi John,

This request is still available ?
May I join with the team?

Regards,
Herman

On Mon, 22 Jun 2020 at 19.23 Puneet Makhija 
wrote:

> Hello please guide me please I request
> Actually I completed a project of django 95 percent
> By using abstract user
> Class User(absrract user)
> Class worker(User)
>
> Through this architecture
> And my clients suddenly wants role based setup
> They said when I am an admin
> I will be able to create multiple sub admin through restrictions
> How to achieve this now
> Please help me please
>
> On Mon, Jun 22, 2020, 3:01 AM John McClain  wrote:
>
>> Francis,
>>
>> You can email me at j...@fundgrazing.com
>>
>> John
>>
>> On Sat, 20 Jun 2020 at 10:08, FRANCIS ODERO 
>> wrote:
>>
>>> hello am really interested in django backend development
>>> How am i supposed to contant you
>>>
>>> On Sat, Jun 20, 2020 at 4:08 AM chaitanya orakala <
>>> chaitu.orak...@gmail.com> wrote:
>>>
 Hey John,
 I had sent an email in interest to this position. Please have a look at
 it
 Thanks

 On Fri, Jun 19, 2020 at 7:52 PM John McClain 
 wrote:

> Hello Ali,
>
> Please contact me via email or skype to discuss the possibilities.
>
> Cheers,
>
> John
>
> On Fri, 19 Jun 2020 at 12:37, Ali Murtuza 
> wrote:
>
>> Hello I am intrested for Django backend developer
>>
>> On Fri, 19 Jun 2020 at 2:55 PM, John McClain 
>> wrote:
>>
>>> Hello all,
>>>
>>> I am looking for long term collaborators on a live django project I
>>> own and operate.
>>>
>>> This is a bootstrapped project which is generated revenue. However,
>>> all funds are poured back into the project at the moment.
>>>
>>> There is compensation for the right person(s)
>>>
>>> Please only apply if you have exceptional full stack developer
>>> skills. This is not a jr. role but would suit an intermediate level
>>> developer with a few years under their belt.
>>>
>>> Fluent English as a first language is required but the position
>>> itself is fully remote.
>>>
>>> If you are looking to contribute to a true bootstrapped startup with
>>> a proven POC, perhaps you would consider this opportunity.
>>>
>>> I am looking forward to speaking with you soon.
>>>
>>>
>>> We are looking for expertise in
>>>
>>> 1. Marketing Guru who can manage the Sendgrid implementation and
>>> ongoing marketing campaign creation and management.
>>>
>>> 2. Django backend developer to continue improving models or
>>> introducing new ones to the architecture already in play.
>>>
>>> 3, Frontend designer with strong UI UX experience to assist with
>>> assets to compliment the two rolls identified above
>>>
>>> --
>>> John McClain
>>> fundgrazing.com
>>>
>>> Cell: 085-1977-823
>>> Skype: jmcclain0129
>>> Email: jmcclain0...@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/CAN-hv_qi7kLmrfcQaqihT1xP0EpfJbqgt5S6q%3Di8rOFDwgBasw%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/CA%2BGgMvW12F83%3DpqLubJTGqkUzH2eDzqzn1t%2BgMZ3UnCsE6uy%3Dw%40mail.gmail.com
>> 
>> .
>>
>
>
> --
> John McClain
>
> Cell: 085-1977-823
> Skype: jmcclain0129
> Email: jmcclain0...@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/CAN-hv_pJ-eh2XGYkKFA6NSez89ffOe__oizdqpOMrrOHVRmieg%40mail.gmail.com
> 
> .
>
 --
 You received this message 

Module recommendation for social authentication

2020-06-22 Thread Stats Student
Hi, I am trying to decide between python-social-auth and
django-allauth - any insight would be appreciated. Or if there is a
better alternative module for integrating Django with Google, Facebook
and LinkedIn authentication, I'd love to know. Thanks in advance.

-- 
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/e3b1a8d9-9190-4c7f-ab69-44625b106851o%40googlegroups.com.


Re: configure nginx

2020-06-22 Thread Jonathan Spicer
>From the error message it appears something is already listening on port
80. Do you apache installed? Or do you have python running as a web server?

If something is already using the same port number the service can't start.

Kind regards

Johnny

On Sun, 21 Jun 2020 at 05:21, Giovanni Silva  wrote:

> I have an Error:
>
> nginx.service - A high performance web server and a reverse proxy server
>  Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor
> preset: enabled)
>  Active: failed (Result: exit-code) since Sun 2020-06-21 06:17:48
> CEST; 35s ago
>Docs: man:nginx(8)
> Process: 26937 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on;
> master_process on; (code=exited, status=0/SUCCESS)
> Process: 26938 ExecStart=/usr/sbin/nginx -g daemon on; master_process
> on; (code=exited, status=1/FAILURE)
>
> Jun 21 06:17:45 vmi404911.contaboserver.net systemd[1]: Starting A high
> performance web server and a reverse proxy server...
> Jun 21 06:17:45 vmi404911.contaboserver.net nginx[26938]: nginx: [emerg]
> bind() to 0.0.0.0:80 failed (98: Address already in use)
> Jun 21 06:17:46 vmi404911.contaboserver.net nginx[26938]: nginx: [emerg]
> bind() to 0.0.0.0:80 failed (98: Address already in use)
> Jun 21 06:17:46 vmi404911.contaboserver.net nginx[26938]: nginx: [emerg]
> bind() to 0.0.0.0:80 failed (98: Address already in use)
> Jun 21 06:17:47 vmi404911.contaboserver.net nginx[26938]: nginx: [emerg]
> bind() to 0.0.0.0:80 failed (98: Address already in use)
> Jun 21 06:17:47 vmi404911.contaboserver.net nginx[26938]: nginx: [emerg]
> bind() to 0.0.0.0:80 failed (98: Address already in use)
> Jun 21 06:17:48 vmi404911.contaboserver.net nginx[26938]: nginx: [emerg]
> still could not bind()
> Jun 21 06:17:48 vmi404911.contaboserver.net systemd[1]: nginx.service:
> Control process exited, code=exited, status=1/FAILURE
> Jun 21 06:17:48 vmi404911.contaboserver.net systemd[1]: nginx.service:
> Failed with result 'exit-code'.
> Jun 21 06:17:48 vmi404911.contaboserver.net systemd[1]: Failed to start A
> high performance web server and a reverse proxy server.
>
> Can anyone help -me?
>
> --
> *Giovanni Silva*
> +55 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/CABO2r9fXi%3DLK0pRp5UQ%2B5r8mZeNYPwGr6TLwQLRZ%2BbZKMqt5ow%40mail.gmail.com
> 
> .
>


-- 

Kind regards

Johnny Spicer

e: joh...@spicersolutions.com
m: +44 (0) 7821 329479 <+44%207821%20329479>
w: www.spicersolutions.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/CAOLOTcJVPbYSQtWhEn3L3N27-HTsmSS%3DDqqTz23656ooziULDw%40mail.gmail.com.


Re: configure nginx

2020-06-22 Thread 'Peter van der Does' via Django users
There's already a process running listening on 0.0.0.0:80


On 6/21/20 12:21 AM, Giovanni Silva wrote:
> I have an Error:
>
> nginx.service - A high performance web server and a reverse proxy server
>      Loaded: loaded (/lib/systemd/system/nginx.service; enabled;
> vendor preset: enabled)
>      Active: failed (Result: exit-code) since Sun 2020-06-21 06:17:48
> CEST; 35s ago
>        Docs: man:nginx(8)
>     Process: 26937 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on;
> master_process on; (code=exited, status=0/SUCCESS)
>     Process: 26938 ExecStart=/usr/sbin/nginx -g daemon on;
> master_process on; (code=exited, status=1/FAILURE)
>
> Jun 21 06:17:45 vmi404911.contaboserver.net
>  systemd[1]: Starting A high
> performance web server and a reverse proxy server...
> Jun 21 06:17:45 vmi404911.contaboserver.net
>  nginx[26938]: nginx: [emerg]
> bind() to 0.0.0.0:80  failed (98: Address already
> in use)
> Jun 21 06:17:46 vmi404911.contaboserver.net
>  nginx[26938]: nginx: [emerg]
> bind() to 0.0.0.0:80  failed (98: Address already
> in use)
> Jun 21 06:17:46 vmi404911.contaboserver.net
>  nginx[26938]: nginx: [emerg]
> bind() to 0.0.0.0:80  failed (98: Address already
> in use)
> Jun 21 06:17:47 vmi404911.contaboserver.net
>  nginx[26938]: nginx: [emerg]
> bind() to 0.0.0.0:80  failed (98: Address already
> in use)
> Jun 21 06:17:47 vmi404911.contaboserver.net
>  nginx[26938]: nginx: [emerg]
> bind() to 0.0.0.0:80  failed (98: Address already
> in use)
> Jun 21 06:17:48 vmi404911.contaboserver.net
>  nginx[26938]: nginx: [emerg]
> still could not bind()
> Jun 21 06:17:48 vmi404911.contaboserver.net
>  systemd[1]: nginx.service:
> Control process exited, code=exited, status=1/FAILURE
> Jun 21 06:17:48 vmi404911.contaboserver.net
>  systemd[1]: nginx.service: Failed
> with result 'exit-code'.
> Jun 21 06:17:48 vmi404911.contaboserver.net
>  systemd[1]: Failed to start A
> high performance web server and a reverse proxy server.
>
> Can anyone help -me?
>
> -- 
> */Giovanni Silva/*
> +55 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/CABO2r9fXi%3DLK0pRp5UQ%2B5r8mZeNYPwGr6TLwQLRZ%2BbZKMqt5ow%40mail.gmail.com
> .
-- 
*Peter van der Does
o: ***410-584-2500
m: 732-425-3102
*ONeil Interactive, Inc *
oneilinteractive.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/888d413f-0bfb-51ea-c37c-9abc48ab64b0%40oneilinteractive.com.


Re: Collaborators

2020-06-22 Thread Puneet Makhija
Hello please guide me please I request
Actually I completed a project of django 95 percent
By using abstract user
Class User(absrract user)
Class worker(User)

Through this architecture
And my clients suddenly wants role based setup
They said when I am an admin
I will be able to create multiple sub admin through restrictions
How to achieve this now
Please help me please

On Mon, Jun 22, 2020, 3:01 AM John McClain  wrote:

> Francis,
>
> You can email me at j...@fundgrazing.com
>
> John
>
> On Sat, 20 Jun 2020 at 10:08, FRANCIS ODERO 
> wrote:
>
>> hello am really interested in django backend development
>> How am i supposed to contant you
>>
>> On Sat, Jun 20, 2020 at 4:08 AM chaitanya orakala <
>> chaitu.orak...@gmail.com> wrote:
>>
>>> Hey John,
>>> I had sent an email in interest to this position. Please have a look at
>>> it
>>> Thanks
>>>
>>> On Fri, Jun 19, 2020 at 7:52 PM John McClain 
>>> wrote:
>>>
 Hello Ali,

 Please contact me via email or skype to discuss the possibilities.

 Cheers,

 John

 On Fri, 19 Jun 2020 at 12:37, Ali Murtuza 
 wrote:

> Hello I am intrested for Django backend developer
>
> On Fri, 19 Jun 2020 at 2:55 PM, John McClain 
> wrote:
>
>> Hello all,
>>
>> I am looking for long term collaborators on a live django project I
>> own and operate.
>>
>> This is a bootstrapped project which is generated revenue. However,
>> all funds are poured back into the project at the moment.
>>
>> There is compensation for the right person(s)
>>
>> Please only apply if you have exceptional full stack developer
>> skills. This is not a jr. role but would suit an intermediate level
>> developer with a few years under their belt.
>>
>> Fluent English as a first language is required but the position
>> itself is fully remote.
>>
>> If you are looking to contribute to a true bootstrapped startup with
>> a proven POC, perhaps you would consider this opportunity.
>>
>> I am looking forward to speaking with you soon.
>>
>>
>> We are looking for expertise in
>>
>> 1. Marketing Guru who can manage the Sendgrid implementation and
>> ongoing marketing campaign creation and management.
>>
>> 2. Django backend developer to continue improving models or
>> introducing new ones to the architecture already in play.
>>
>> 3, Frontend designer with strong UI UX experience to assist with
>> assets to compliment the two rolls identified above
>>
>> --
>> John McClain
>> fundgrazing.com
>>
>> Cell: 085-1977-823
>> Skype: jmcclain0129
>> Email: jmcclain0...@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/CAN-hv_qi7kLmrfcQaqihT1xP0EpfJbqgt5S6q%3Di8rOFDwgBasw%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/CA%2BGgMvW12F83%3DpqLubJTGqkUzH2eDzqzn1t%2BgMZ3UnCsE6uy%3Dw%40mail.gmail.com
> 
> .
>


 --
 John McClain

 Cell: 085-1977-823
 Skype: jmcclain0129
 Email: jmcclain0...@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/CAN-hv_pJ-eh2XGYkKFA6NSez89ffOe__oizdqpOMrrOHVRmieg%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
>>>