[GeoNode-users] Map rendering slow at GeoNode (Dev Gis)

Alessio Fabiani alessio.fabiani at geo-solutions.it
Wed Apr 24 02:44:10 PDT 2019


Dear Deb,
there are a couple of settings that you can use to limit creation of users.

"ACCOUNT_OPEN_SIGNUP" closes completely the registration form

"ACCOUNT_APPROVAL_REQUIRED" needs an admin to set the user to "active"
before he can login

Il giorno mer 24 apr 2019 alle ore 11:39 Dev Gis <deviirmr at gmail.com> ha
scritto:

> Dear Toni,
> Thank you so much for your time and effort.
> I am very happy to see that the application is up and resume to normal
> performance.
>
>  One last thing, how to stop those spammers for creating nonactive users,
> I mean can we do something at the configuration level.
>
> Regards
> Deb
>
> On Wed, Apr 24, 2019 at 11:24 AM Toni Schönbuchner <
> toni.schoenbuchner at csgis.de> wrote:
>
>> Dear Deb,
>>
>> I´m very happy to hear it´s working!
>>
>> In case somebody else is having problems that anonymous users cannot see
>> layers this
>> is how it worked in the end:
>> _
>> Setup oauth correctly
>> _
>> double check rest role service (test with curl)
>> _
>> created expected admin users in geonode
>> _
>> removed a hugh amount of not active users (those might slow down the auth
>> check!?)
>> _
>> double checked geofence rules
>>
>>
>> Cheers,
>>
>> Toni
>>
>> -----------------------------------------------
>> CSGIS
>>
>> -----------------------------------------------
>> Kolonnadenstraße 1
>> 04109 Leipzig
>> -----------------------------------------------
>> Tel  +49/ (0) 341 24 04 738
>> Fax  +49/ (0) 341 24 04 739
>> Web http://csgis.de
>> -----------------------------------------------
>>
>> Hinweis gemäß § 33 BDSG
>> Daten der Verfahrensbeteiligten werden gespeichert. Dieses Dokument ist
>> ausschließlich für den
>> Adressaten bestimmt. Der Inhalt der E-Mail ist vertraulich. Falls Sie
>> diese E-Mail versehentlich
>> erhalten haben, rufen Sie uns unter obiger Rufnummer umgehend an und
>> löschen Sie diese Nachricht
>> von Ihrem Computer. Jegliche Art von Reproduktionen, Verbreitung,
>> Vervielfältigung, Veränderung,
>> Verteilung und/oder Veröffentlichung dieser E-Mail ist verboten.
>>
>> Am 24.04.2019 um 11:16 schrieb Dev Gis <deviirmr at gmail.com>:
>>
>> Hi Toni,
>> Thank you for sharing the script.
>> Yes, I have some experience in Django development but not much aware of
>> GeoNode classes.
>> But finally, I have managed to delete all spam user :).
>>
>> Now the application is faster and better as you suggested to me in the
>> last email. :)
>> Thank you so much for your effort and time.
>> Regards
>> Deb
>>
>> On Wed, Apr 24, 2019 at 11:07 AM Toni Schönbuchner <
>> toni.schoenbuchner at csgis.de> wrote:
>>
>>> Hi deb,
>>>
>>> As far as I know you cannot in django admin gui.
>>> but you could list layers depening on your needs using the django shell
>>> with something like:
>>>
>>> $ Django-admin shell
>>>
>>> from django.contrib.auth import get_user_model
>>> User = get_user_model()
>>> import datetime
>>>
>>> *# show users which joined the last x days (120 in this example)*
>>> *# you could also switch this to show only users older than ...*
>>> active_staff_last_login =
>>> User.objects.filter(date_joined__lte=datetime.datetime.today(),
>>> date_joined__gt=datetime.datetime.today()-datetime.timedelta(days=120))
>>>
>>> for username in active_staff_last_login:
>>>     print str(username)+' joined: '+str(username.date_joined)
>>>
>>>
>>> cheers,
>>>
>>> Toni
>>>
>>> -----------------------------------------------
>>> CSGIS
>>>
>>> -----------------------------------------------
>>> Kolonnadenstraße 1
>>> 04109 Leipzig
>>> -----------------------------------------------
>>> Tel  +49/ (0) 341 24 04 738
>>> Fax  +49/ (0) 341 24 04 739
>>> Web http://csgis.de
>>> -----------------------------------------------
>>>
>>> Hinweis gemäß § 33 BDSG
>>> Daten der Verfahrensbeteiligten werden gespeichert. Dieses Dokument ist
>>> ausschließlich für den
>>> Adressaten bestimmt. Der Inhalt der E-Mail ist vertraulich. Falls Sie
>>> diese E-Mail versehentlich
>>> erhalten haben, rufen Sie uns unter obiger Rufnummer umgehend an und
>>> löschen Sie diese Nachricht
>>> von Ihrem Computer. Jegliche Art von Reproduktionen, Verbreitung,
>>> Vervielfältigung, Veränderung,
>>> Verteilung und/oder Veröffentlichung dieser E-Mail ist verboten.
>>>
>>> Am 24.04.2019 um 10:31 schrieb Dev Gis <deviirmr at gmail.com>:
>>>
>>> Hi Toni,
>>> You are right, after removing 50% spam user the performance is a bit
>>> improved.
>>> I manage to delete 5000+ user based on the filter by keywords but rest
>>> 3000+ I am bit afraid to delete.
>>> Could you suggest some mechanism so that I can filter based on the date
>>> before deleting those spam users?
>>>
>>>
>>> <image.png>
>>>
>>> Regards
>>> Deb
>>>
>>> On Tue, Apr 23, 2019 at 10:21 PM Dev Gis <deviirmr at gmail.com> wrote:
>>>
>>>> Thank you for the reply.
>>>> I saw that suspicious users yesterday its almost 9000+
>>>> Yes tomorrow morning I will do the cleaning and get back to you.
>>>> Regards
>>>> Deb
>>>>
>>>> On Tue, 23 Apr 2019 at 9:49 PM, Toni Schönbuchner <
>>>> toni.schoenbuchner at csgis.de> wrote:
>>>>
>>>>> Dear Deb,
>>>>>
>>>>> would it be possible for you to got through the list of Users and
>>>>> delete all not needed:
>>>>> http://geonode.iwlearn.org/admin/people/profile/
>>>>> Might be a lot created by spamers.
>>>>>
>>>>> (I´ve recognized the user endpoint takes a bit long to resolve and
>>>>> like to see if things get
>>>>> better after housecleaning)
>>>>>
>>>>> Best regards,
>>>>>
>>>>> Toni
>>>>>
>>>>>
>> _______________________________________________
> geonode-users mailing list
> geonode-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/geonode-users
>


-- 

==

GeoServer Professional Services from the experts! Visit http://goo.gl/it488V
for more information.
==
Ing. Alessio Fabiani

@alfa7691
Founder/Technical Lead


GeoSolutions S.A.S.
Via di Montramito 3/A - 55054  Massarosa (LU) - Italy
phone: +39 0584 962313
fax:     +39 0584 1660272
mob:   +39 331 6233686


http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------

Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE
2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si
precisa che ogni circostanza inerente alla presente email (il suo
contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è
riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il
messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra
operazione è illecita. Le sarei comunque grato se potesse darmene notizia.


This email is intended only for the person or entity to which it is
addressed and may contain information that is privileged, confidential or
otherwise protected from disclosure. We remind that - as provided by
European Regulation 2016/679 “GDPR” - copying, dissemination or use of this
e-mail or the information herein by anyone other than the intended
recipient is prohibited. If you have received this email by mistake, please
notify us immediately by telephone or e-mail.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20190424/4f5dce65/attachment-0001.html>


More information about the geonode-users mailing list