[GeoNode-users] Map rendering slow at GeoNode (Dev Gis)
Toni Schönbuchner
toni.schoenbuchner at csgis.de
Wed Apr 24 02:23:57 PDT 2019
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 <mailto: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 <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 <mailto: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 <mailto: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 <mailto: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/ <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
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20190424/97ac9950/attachment-0001.html>
More information about the geonode-users
mailing list